<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>dom4j - 1.6.1</title>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
</head>
<body>
<TABLE cellspacing="0" cellpadding="2"><TBODY>
    <!-- C:\ Projects\ dom4j_1.x_branch\ dom4j\ src\ java\ org\ dom4j\ io\ XMLWriter.java -->
  <TR>
    <TD colspan="6" class="reportHeader">
    <TABLE width="100%"><TR>
    <TD valign="top" class="titleText">Clover coverage report -   dom4j - 1.6.1 <DIV class="timestamp"><b>Coverage timestamp:</b>&nbsp;ma mei 16 2005 14:23:01 GMT+01:00</DIV>
            <DIV class="navBar"><a href="../../../pkgs-summary.html"><b>Overview</b></a>&nbsp;&nbsp;&nbsp;<a href="pkg-summary.html"><b>Package</b></a>&nbsp;&nbsp;&nbsp;<font class="navBarCurrent">File</font></DIV>
    
<DIV class="navBarLink">
&nbsp;&nbsp;&nbsp;
    <A HREF="../../../index.html" TARGET="_top">FRAMES</A>&nbsp;&nbsp;
<A HREF="XMLWriter.html" TARGET="_top">NO FRAMES</A>&nbsp;&nbsp;
    </DIV>

</TD>
         <td class="headerStats" valign="top" width="40%" align="right">
        <table align="right">
         <tr>
           <td nowrap><b>file stats:</b></td>
           <td align="right"><b>LOC:</b></td>
           <td align="right">1.934</td>
           <td width="10%">&nbsp;</td>
           <td align="right"><b>Methods:</b></td>
           <td align="right">93</td>
         </tr>
         <tr>
           <td></td>
           <td align="right"><b>NCLOC:</b></td>
           <td align="right">1.101</td>
           <td width="10%">&nbsp;</td>
           <td align="right"><b>Classes:</b></td>
           <td align="right">1</td>
         </tr>
      </table>
     </td>
    </TR></TABLE>
   </TD>
  </TR>

<TR><TD class="hbreak" colspan="6">&nbsp;</TD></TR>
  <TR>
    <TD class="graphHeaderLeft"><b>&nbsp;Source file</b></TD>
    <TD class="graphHeader">Conditionals</TD>
    <TD class="graphHeader">Statements</TD>
    <TD class="graphHeader">Methods</TD>
    <TD class="graphHeader" align="left" colspan="2"><B>TOTAL</B></TD>
  </TR>   
  <TR>
    <TD class="graphItem">
        	   XMLWriter.java
	    </TD>
   
    <TD class="graphPercent" align="center">59,5%</TD>
    <TD class="graphPercent" align="center">64,3%</TD>
    <TD class="graphPercent" align="center">57%</TD>
    <TD class="graphBarLeft" align="center"><B>62,3%</B></TD>
    <TD class="graphBar">
            <TABLE class="barGraph" cellspacing="0">
        <TBODY>
          <TR>
	               <TD class="covered"><img alt="coverage" src="../../../img/trans.gif"
                   width="124" height="12"></TD>
            <TD class="uncovered"><img alt="coverage" src="../../../img/trans.gif"
                   width="76" height="12"></TD>
	   	  </TR>
	</TBODY>
      </TABLE>
          </TD>
  </TR> 
</TBODY></TABLE><TABLE cellspacing="0" cellpadding="0" class="srcView"><TBODY>
<TR><TD align="right" class="lineCount">
&nbsp;1</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">/*</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;2</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;3</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> *</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;4</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * This software is open source.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;5</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * See the bottom of this file for the licence.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;6</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;7</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;8</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">package</span> org.dom4j.io;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;9</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;10</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.io.BufferedWriter;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;11</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.io.IOException;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;12</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.io.OutputStream;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;13</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.io.OutputStreamWriter;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;14</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.io.UnsupportedEncodingException;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;15</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.io.Writer;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;16</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.util.HashMap;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;17</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.util.Iterator;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;18</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.util.List;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;19</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.util.Map;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;20</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> java.util.StringTokenizer;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;21</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;22</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Attribute;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;23</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.CDATA;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;24</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Comment;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;25</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Document;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;26</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.DocumentType;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;27</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Element;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;28</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Entity;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;29</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Namespace;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;30</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Node;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;31</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.ProcessingInstruction;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;32</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Text;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;33</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.tree.NamespaceStack;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;34</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;35</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.Attributes;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;36</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.InputSource;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;37</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.Locator;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;38</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.SAXException;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;39</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.SAXNotRecognizedException;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;40</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.SAXNotSupportedException;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;41</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.XMLReader;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;42</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.ext.LexicalHandler;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;43</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.xml.sax.helpers.XMLFilterImpl;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;44</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;45</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;46</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;47</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * &lt;code&gt;XMLWriter&lt;/code&gt; takes a DOM4J tree and formats it to a stream as</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;48</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * XML. It can also take SAX events too so can be used by SAX clients as this</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;49</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * object implements the {@link org.xml.sax.ContentHandler}and {@link</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;50</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * LexicalHandler} interfaces. as well. This formatter performs typical document</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;51</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * formatting. The XML declaration and processing instructions are always on</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;52</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * their own lines. An {@link OutputFormat}object can be used to define how</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;53</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * whitespace is handled when printing and allows various configuration options,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;54</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * such as to allow suppression of the XML declaration, the encoding declaration</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;55</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * or whether empty documents are collapsed.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;56</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;57</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;58</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;59</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * There are &lt;code&gt;write(...)&lt;/code&gt; methods to print any of the standard</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;60</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * DOM4J classes, including &lt;code&gt;Document&lt;/code&gt; and &lt;code&gt;Element&lt;/code&gt;,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;61</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * to either a &lt;code&gt;Writer&lt;/code&gt; or an &lt;code&gt;OutputStream&lt;/code&gt;.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;62</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Warning: using your own &lt;code&gt;Writer&lt;/code&gt; may cause the writer's</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;63</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * preferred character encoding to be ignored. If you use encodings other than</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;64</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * UTF8, we recommend using the method that takes an OutputStream instead.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;65</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;66</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;67</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@author</span> &lt;a href="mailto:jstrachan@apache.org"&gt;James Strachan &lt;/a&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;68</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@author</span> Joseph Bowbeer</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;69</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@version</span> $Revision: 1.83.2.2 $</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;70</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
<A name="XMLWriter">&nbsp;71</A></TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">public</span> <span class="keyword">class</span> XMLWriter <span class="keyword">extends</span> XMLFilterImpl <span class="keyword">implements</span> LexicalHandler {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;72</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">static</span> final String PAD_TEXT = <span class="string">" "</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;73</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;74</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">protected</span> <span class="keyword">static</span> final String[] LEXICAL_HANDLER_NAMES = {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;75</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="string">"http://xml.org/sax/properties/lexical-handler"</span>,</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;76</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="string">"http://xml.org/sax/handlers/LexicalHandler"</span>};</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;77</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;78</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">protected</span> <span class="keyword">static</span> final OutputFormat DEFAULT_FORMAT = <span class="keyword">new</span> OutputFormat();</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;79</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;80</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** Should entityRefs by resolved when writing ? */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;81</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> resolveEntityRefs = <span class="keyword">true</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;82</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;83</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;84</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Stores the last type of node written so algorithms can refer to the</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;85</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * previous node type</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;86</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;87</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">protected</span> <span class="keyword">int</span> lastOutputNodeType;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;88</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;89</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;90</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Stores if the last written element node was a closing tag or an opening</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;91</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * tag.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;92</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;93</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> lastElementClosed = <span class="keyword">false</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;94</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;95</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** Stores the xml:space attribute value of preserve for whitespace flag */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;96</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">protected</span> <span class="keyword">boolean</span> preserve = <span class="keyword">false</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;97</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;98</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** The Writer used to output to */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;99</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">protected</span> Writer writer;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;100</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;101</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** The Stack of namespaceStack written so far */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;102</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> NamespaceStack namespaceStack = <span class="keyword">new</span> NamespaceStack();</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;103</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;104</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** The format used by this writer */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;105</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> OutputFormat format;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;106</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;107</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** whether we should escape text */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;108</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> escapeText = <span class="keyword">true</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;109</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;110</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;111</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * The initial number of indentations (so you can print a whole document</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;112</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * indented, if you like)</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;113</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;114</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">int</span> indentLevel = 0;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;115</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;116</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** buffer used when escaping strings */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;117</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> StringBuffer buffer = <span class="keyword">new</span> StringBuffer();</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;118</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;119</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;120</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * whether we have added characters before from the same chunk of characters</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;121</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;122</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> charsAdded = <span class="keyword">false</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;123</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;124</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">char</span> lastChar;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;125</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;126</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** Whether a flush should occur after writing a document */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;127</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> autoFlush;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;128</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;129</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** Lexical handler we should delegate to */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;130</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> LexicalHandler lexicalHandler;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;131</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;132</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;133</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Whether comments should appear inside DTD declarations - defaults to</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;134</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * false</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;135</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;136</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> showCommentsInDTDs;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;137</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;138</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** Is the writer curerntly inside a DTD definition? */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;139</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">boolean</span> inDTD;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;140</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;141</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/** The namespaces used for the current element when consuming SAX events */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;142</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> Map namespacesMap;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;143</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;144</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;145</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * what is the maximum allowed character code such as 127 in US-ASCII (7</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;146</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * bit) or 255 in ISO- (8 bit) or -1 to not escape any characters (other</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;147</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * than the special XML characters like &amp;lt; &amp;gt; &amp;amp;)</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;148</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;149</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="keyword">private</span> <span class="keyword">int</span> maximumAllowedCharacter;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;150</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;151</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 151: method entered 18 times.">&nbsp;18</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 151: method entered 18 times.">    <span class="keyword">public</span> XMLWriter(Writer writer) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;152</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 152: statement executed 18 times.">&nbsp;18</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 152: statement executed 18 times.">        <span class="keyword">this</span>(writer, DEFAULT_FORMAT);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;153</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;154</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;155</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 155: method entered 2143 times.">&nbsp;2143</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 155: method entered 2143 times.">    <span class="keyword">public</span> XMLWriter(Writer writer, OutputFormat format) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;156</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 156: statement executed 2143 times.">&nbsp;2143</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 156: statement executed 2143 times.">        <span class="keyword">this</span>.writer = writer;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;157</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 157: statement executed 2143 times.">&nbsp;2143</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 157: statement executed 2143 times.">        <span class="keyword">this</span>.format = format;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;158</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 158: statement executed 2143 times.">&nbsp;2143</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 158: statement executed 2143 times.">        namespaceStack.push(Namespace.NO_NAMESPACE);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;159</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;160</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;161</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 161: method entered 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 161: method entered 2 times.">    <span class="keyword">public</span> XMLWriter() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;162</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 162: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 162: statement executed 2 times.">        <span class="keyword">this</span>.format = DEFAULT_FORMAT;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;163</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 163: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 163: statement executed 2 times.">        <span class="keyword">this</span>.writer = <span class="keyword">new</span> BufferedWriter(<span class="keyword">new</span> OutputStreamWriter(System.out));</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;164</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 164: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 164: statement executed 2 times.">        <span class="keyword">this</span>.autoFlush = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;165</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 165: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 165: statement executed 2 times.">        namespaceStack.push(Namespace.NO_NAMESPACE);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;166</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;167</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;168</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 168: method entered 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 168: method entered 2 times.">    <span class="keyword">public</span> XMLWriter(OutputStream out) <span class="keyword">throws</span> UnsupportedEncodingException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;169</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 169: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 169: statement executed 2 times.">        <span class="keyword">this</span>.format = DEFAULT_FORMAT;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;170</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 170: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 170: statement executed 2 times.">        <span class="keyword">this</span>.writer = createWriter(out, format.getEncoding());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;171</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 171: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 171: statement executed 2 times.">        <span class="keyword">this</span>.autoFlush = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;172</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 172: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 172: statement executed 2 times.">        namespaceStack.push(Namespace.NO_NAMESPACE);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;173</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;174</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;175</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 175: method entered 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 175: method entered 7 times.">    <span class="keyword">public</span> XMLWriter(OutputStream out, OutputFormat format)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;176</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> UnsupportedEncodingException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;177</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 177: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 177: statement executed 7 times.">        <span class="keyword">this</span>.format = format;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;178</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 178: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 178: statement executed 7 times.">        <span class="keyword">this</span>.writer = createWriter(out, format.getEncoding());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;179</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 179: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 179: statement executed 7 times.">        <span class="keyword">this</span>.autoFlush = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;180</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 180: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 180: statement executed 7 times.">        namespaceStack.push(Namespace.NO_NAMESPACE);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;181</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;182</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;183</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 183: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 183: method entered 8 times.">    <span class="keyword">public</span> XMLWriter(OutputFormat format) <span class="keyword">throws</span> UnsupportedEncodingException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;184</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 184: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 184: statement executed 8 times.">        <span class="keyword">this</span>.format = format;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;185</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 185: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 185: statement executed 8 times.">        <span class="keyword">this</span>.writer = createWriter(System.out, format.getEncoding());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;186</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 186: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 186: statement executed 8 times.">        <span class="keyword">this</span>.autoFlush = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;187</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 187: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 187: statement executed 8 times.">        namespaceStack.push(Namespace.NO_NAMESPACE);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;188</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;189</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;190</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 190: method entered 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 190: method entered 2 times.">    <span class="keyword">public</span> <span class="keyword">void</span> setWriter(Writer writer) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;191</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 191: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 191: statement executed 2 times.">        <span class="keyword">this</span>.writer = writer;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;192</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 192: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 192: statement executed 2 times.">        <span class="keyword">this</span>.autoFlush = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;193</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;194</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;195</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 195: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 195: method entered 8 times.">    <span class="keyword">public</span> <span class="keyword">void</span> setOutputStream(OutputStream out)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;196</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> UnsupportedEncodingException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;197</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 197: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 197: statement executed 8 times.">        <span class="keyword">this</span>.writer = createWriter(out, format.getEncoding());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;198</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 198: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 198: statement executed 8 times.">        <span class="keyword">this</span>.autoFlush = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;199</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;200</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;201</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;202</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;203</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;204</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> true if text thats output should be escaped. This is enabled by</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;205</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *         default. It could be disabled if the output format is textual,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;206</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *         like in XSLT where we can have xml, html or text output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;207</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;208</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 208: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 208: method not entered.">    <span class="keyword">public</span> <span class="keyword">boolean</span> isEscapeText() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;209</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 209: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 209: statement not executed.">        <span class="keyword">return</span> escapeText;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;210</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;211</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;212</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;213</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Sets whether text output should be escaped or not. This is enabled by</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;214</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * default. It could be disabled if the output format is textual, like in</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;215</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * XSLT where we can have xml, html or text output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;216</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;217</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> escapeText</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;218</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;219</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;220</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 220: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 220: method entered 1 time.">    <span class="keyword">public</span> <span class="keyword">void</span> setEscapeText(<span class="keyword">boolean</span> escapeText) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;221</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 221: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 221: statement executed 1 time.">        <span class="keyword">this</span>.escapeText = escapeText;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;222</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;223</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;224</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;225</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Set the initial indentation level. This can be used to output a document</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;226</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * (or, more likely, an element) starting at a given indent level, so it's</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;227</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * not always flush against the left margin. Default: 0</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;228</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;229</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> indentLevel</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;230</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            the number of indents to start with</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;231</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;232</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 232: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 232: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> setIndentLevel(<span class="keyword">int</span> indentLevel) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;233</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 233: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 233: statement not executed.">        <span class="keyword">this</span>.indentLevel = indentLevel;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;234</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;235</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;236</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;237</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Returns the maximum allowed character code that should be allowed</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;238</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * unescaped which defaults to 127 in US-ASCII (7 bit) or 255 in ISO- (8</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;239</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * bit).</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;240</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;241</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;242</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;243</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 243: method entered 484095 times.">&nbsp;484095</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 243: method entered 484095 times.">    <span class="keyword">public</span> <span class="keyword">int</span> getMaximumAllowedCharacter() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;244</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 244: statement executed 484095 times.">&nbsp;484095</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 244: statement executed 484095 times.">        <span class="keyword">if</span> (maximumAllowedCharacter == 0) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;245</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 245: statement executed 2147 times.">&nbsp;2147</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 245: statement executed 2147 times.">            maximumAllowedCharacter = defaultMaximumAllowedCharacter();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;246</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;247</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;248</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 248: statement executed 484095 times.">&nbsp;484095</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 248: statement executed 484095 times.">        <span class="keyword">return</span> maximumAllowedCharacter;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;249</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;250</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;251</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;252</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Sets the maximum allowed character code that should be allowed unescaped</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;253</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * such as 127 in US-ASCII (7 bit) or 255 in ISO- (8 bit) or -1 to not</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;254</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * escape any characters (other than the special XML characters like &amp;lt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;255</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &amp;gt; &amp;amp;) If this is not explicitly set then it is defaulted from the</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;256</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * encoding.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;257</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;258</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> maximumAllowedCharacter</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;259</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            The maximumAllowedCharacter to set</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;260</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;261</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 261: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 261: method entered 1 time.">    <span class="keyword">public</span> <span class="keyword">void</span> setMaximumAllowedCharacter(<span class="keyword">int</span> maximumAllowedCharacter) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;262</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 262: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 262: statement executed 1 time.">        <span class="keyword">this</span>.maximumAllowedCharacter = maximumAllowedCharacter;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;263</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;264</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;265</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;266</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Flushes the underlying Writer</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;267</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;268</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;269</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;270</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;271</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 271: method entered 2119 times.">&nbsp;2119</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 271: method entered 2119 times.">    <span class="keyword">public</span> <span class="keyword">void</span> flush() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;272</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 272: statement executed 2119 times.">&nbsp;2119</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 272: statement executed 2119 times.">        writer.flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;273</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;274</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;275</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;276</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Closes the underlying Writer</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;277</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;278</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;279</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;280</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;281</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 281: method entered 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 281: method entered 21 times.">    <span class="keyword">public</span> <span class="keyword">void</span> close() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;282</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 282: statement executed 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 282: statement executed 21 times.">        writer.close();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;283</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;284</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;285</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;286</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the new line text to the underlying Writer</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;287</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;288</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;289</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;290</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;291</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 291: method entered 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 291: method entered 113 times.">    <span class="keyword">public</span> <span class="keyword">void</span> println() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;292</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 292: statement executed 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 292: statement executed 113 times.">        writer.write(format.getLineSeparator());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;293</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;294</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;295</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;296</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link Attribute}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;297</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;298</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> attribute</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;299</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Attribute&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;300</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;301</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;302</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;303</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;304</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 304: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 304: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Attribute attribute) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;305</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 305: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 305: statement not executed.">        writeAttribute(attribute);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;306</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;307</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 307: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 307: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;308</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 308: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 308: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;309</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;310</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;311</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;312</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;313</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;314</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * This will print the &lt;code&gt;Document&lt;/code&gt; to the current Writer.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;315</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;316</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;317</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;318</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Warning: using your own Writer may cause the writer's preferred character</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;319</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * encoding to be ignored. If you use encodings other than UTF8, we</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;320</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * recommend using the method that takes an OutputStream instead.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;321</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;322</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;323</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;324</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Note: as with all Writers, you may need to flush() yours after this</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;325</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * method returns.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;326</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;327</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;328</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> doc</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;329</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Document&lt;/code&gt; to format.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;330</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;331</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;332</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             if there's any problem writing.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;333</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;334</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 334: method entered 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 334: method entered 113 times.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Document doc) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;335</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 335: statement executed 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 335: statement executed 113 times.">        writeDeclaration();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;336</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;337</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 337: statement executed 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 337: statement executed 113 times.">        <span class="keyword">if</span> (doc.getDocType() != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;338</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 338: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 338: statement executed 1 time.">            indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;339</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 339: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 339: statement executed 1 time.">            writeDocType(doc.getDocType());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;340</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;341</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;342</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 342: statement executed 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 342: statement executed 113 times.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0, size = doc.nodeCount(); i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;343</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 343: statement executed 116 times.">&nbsp;116</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 343: statement executed 116 times.">            Node node = doc.node(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;344</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 344: statement executed 116 times.">&nbsp;116</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 344: statement executed 116 times.">            writeNode(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;345</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;346</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;347</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 347: statement executed 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 347: statement executed 113 times.">        writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;348</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;349</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 349: statement executed 113 times.">&nbsp;113</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 349: statement executed 113 times.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;350</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 350: statement executed 16 times.">&nbsp;16</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 350: statement executed 16 times.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;351</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;352</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;353</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;354</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;355</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;356</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the &lt;code&gt;{@link Element}&lt;/code&gt;, including its &lt;code&gt;{@link</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;357</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Attribute}&lt;/code&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;358</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * s, and its value, and all its content (child nodes) to the current</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;359</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writer.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;360</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;361</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;362</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;363</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Element&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;364</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;365</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;366</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;367</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;368</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 368: method entered 2043 times.">&nbsp;2043</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 368: method entered 2043 times.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Element element) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;369</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 369: statement executed 2043 times.">&nbsp;2043</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 369: statement executed 2043 times.">        writeElement(element);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;370</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;371</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 371: statement executed 2043 times.">&nbsp;2043</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 371: statement executed 2043 times.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;372</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 372: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 372: statement executed 2 times.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;373</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;374</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;375</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;376</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;377</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link CDATA}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;378</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;379</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> cdata</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;380</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;CDATA&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;381</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;382</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;383</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;384</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;385</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 385: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 385: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(CDATA cdata) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;386</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 386: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 386: statement not executed.">        writeCDATA(cdata.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;387</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;388</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 388: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 388: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;389</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 389: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 389: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;390</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;391</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;392</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;393</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;394</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link Comment}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;395</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;396</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> comment</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;397</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Comment&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;398</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;399</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;400</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;401</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;402</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 402: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 402: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Comment comment) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;403</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 403: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 403: statement not executed.">        writeComment(comment.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;404</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;405</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 405: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 405: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;406</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 406: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 406: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;407</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;408</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;409</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;410</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;411</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link DocumentType}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;412</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;413</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> docType</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;414</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;DocumentType&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;415</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;416</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;417</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;418</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;419</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 419: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 419: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(DocumentType docType) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;420</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 420: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 420: statement not executed.">        writeDocType(docType);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;421</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;422</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 422: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 422: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;423</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 423: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 423: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;424</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;425</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;426</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;427</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;428</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link Entity}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;429</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;430</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> entity</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;431</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Entity&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;432</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;433</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;434</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;435</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;436</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 436: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 436: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Entity entity) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;437</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 437: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 437: statement not executed.">        writeEntity(entity);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;438</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;439</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 439: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 439: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;440</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 440: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 440: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;441</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;442</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;443</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;444</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;445</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link Namespace}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;446</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;447</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> namespace</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;448</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Namespace&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;449</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;450</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;451</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;452</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;453</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 453: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 453: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Namespace namespace) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;454</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 454: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 454: statement not executed.">        writeNamespace(namespace);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;455</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;456</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 456: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 456: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;457</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 457: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 457: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;458</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;459</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;460</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;461</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;462</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link ProcessingInstruction}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;463</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;464</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> processingInstruction</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;465</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;ProcessingInstruction&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;466</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;467</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;468</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;469</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;470</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 470: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 470: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(ProcessingInstruction processingInstruction)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;471</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> IOException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;472</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 472: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 472: statement not executed.">        writeProcessingInstruction(processingInstruction);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;473</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;474</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 474: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 474: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;475</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 475: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 475: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;476</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;477</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;478</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;479</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;480</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;481</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Print out a {@link String}, Perfoms the necessary entity escaping and</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;482</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * whitespace stripping.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;483</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;484</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;485</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> text</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;486</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            is the text to output</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;487</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;488</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;489</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;490</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;491</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 491: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 491: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(String text) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;492</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 492: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 492: statement not executed.">        writeString(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;493</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;494</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 494: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 494: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;495</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 495: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 495: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;496</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;497</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;498</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;499</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;500</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link Text}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;501</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;502</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> text</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;503</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Text&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;504</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;505</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;506</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;507</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;508</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 508: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 508: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Text text) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;509</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 509: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 509: statement not executed.">        writeString(text.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;510</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;511</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 511: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 511: statement not executed.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;512</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 512: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 512: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;513</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;514</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;515</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;516</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;517</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given {@link Node}.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;518</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;519</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> node</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;520</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Node&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;521</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;522</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;523</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;524</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;525</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 525: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 525: method entered 1 time.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Node node) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;526</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 526: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 526: statement executed 1 time.">        writeNode(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;527</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;528</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 528: expression evaluated to true 0 times, false 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 528: expression evaluated to true 0 times, false 1 time.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;529</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 529: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 529: statement not executed.">            flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;530</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;531</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;532</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;533</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;534</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the given object which should be a String, a Node or a List of</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;535</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Nodes.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;536</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;537</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> object</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;538</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            is the object to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;539</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;540</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;541</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;542</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;543</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 543: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 543: method entered 1 time.">    <span class="keyword">public</span> <span class="keyword">void</span> write(Object object) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;544</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 544: expression evaluated to true 1 time, false 0 times.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 544: expression evaluated to true 1 time, false 0 times.">        <span class="keyword">if</span> (object <span class="keyword">instanceof</span> Node) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;545</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 545: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 545: statement executed 1 time.">            write((Node) object);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;546</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 546: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 546: statement not executed.">        } <span class="keyword">else</span> <span class="keyword">if</span> (object <span class="keyword">instanceof</span> String) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;547</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 547: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 547: statement not executed.">            write((String) object);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;548</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 548: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 548: statement not executed.">        } <span class="keyword">else</span> <span class="keyword">if</span> (object <span class="keyword">instanceof</span> List) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;549</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 549: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 549: statement not executed.">            List list = (List) object;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;550</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;551</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 551: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 551: statement not executed.">            <span class="keyword">for</span> (<span class="keyword">int</span> i = 0, size = list.size(); i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;552</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 552: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 552: statement not executed.">                write(list.get(i));</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;553</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;554</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 554: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 554: statement not executed.">        } <span class="keyword">else</span> <span class="keyword">if</span> (object != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;555</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 555: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 555: statement not executed.">            <span class="keyword">throw</span> <span class="keyword">new</span> IOException(<span class="string">"Invalid object: "</span> + object);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;556</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;557</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;558</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;559</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;560</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;561</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the opening tag of an {@link Element}, including its {@link</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;562</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Attribute}s but without its content.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;563</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;564</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;565</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;566</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Element&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;567</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;568</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;569</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;570</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;571</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 571: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 571: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> writeOpen(Element element) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;572</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 572: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 572: statement not executed.">        writer.write(<span class="string">"&lt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;573</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 573: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 573: statement not executed.">        writer.write(element.getQualifiedName());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;574</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 574: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 574: statement not executed.">        writeAttributes(element);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;575</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 575: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 575: statement not executed.">        writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;576</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;577</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;578</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;579</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;580</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the closing tag of an {@link Element}</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;581</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;582</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;583</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;584</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            &lt;code&gt;Element&lt;/code&gt; to output.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;585</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;586</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;587</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;588</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;589</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 589: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 589: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> writeClose(Element element) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;590</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 590: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 590: statement not executed.">        writeClose(element.getQualifiedName());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;591</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;592</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;593</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// XMLFilterImpl methods</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;594</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;595</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 595: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 595: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> parse(InputSource source) <span class="keyword">throws</span> IOException, SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;596</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 596: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 596: statement not executed.">        installLexicalHandler();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;597</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 597: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 597: statement not executed.">        <span class="keyword">super</span>.parse(source);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;598</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;599</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;600</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 600: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 600: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> setProperty(String name, Object value)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;601</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXNotRecognizedException, SAXNotSupportedException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;602</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 602: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 602: statement not executed.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0; i &lt; LEXICAL_HANDLER_NAMES.length; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;603</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 603: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 603: statement not executed.">            <span class="keyword">if</span> (LEXICAL_HANDLER_NAMES[i].equals(name)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;604</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 604: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 604: statement not executed.">                setLexicalHandler((LexicalHandler) value);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;605</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;606</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 606: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 606: statement not executed.">                <span class="keyword">return</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;607</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;608</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;609</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;610</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 610: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 610: statement not executed.">        <span class="keyword">super</span>.setProperty(name, value);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;611</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;612</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;613</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 613: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 613: method not entered.">    <span class="keyword">public</span> Object getProperty(String name) <span class="keyword">throws</span> SAXNotRecognizedException,</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;614</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            SAXNotSupportedException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;615</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 615: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 615: statement not executed.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0; i &lt; LEXICAL_HANDLER_NAMES.length; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;616</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 616: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 616: statement not executed.">            <span class="keyword">if</span> (LEXICAL_HANDLER_NAMES[i].equals(name)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;617</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 617: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 617: statement not executed.">                <span class="keyword">return</span> getLexicalHandler();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;618</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;619</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;620</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;621</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 621: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 621: statement not executed.">        <span class="keyword">return</span> <span class="keyword">super</span>.getProperty(name);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;622</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;623</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;624</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 624: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 624: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> setLexicalHandler(LexicalHandler handler) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;625</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 625: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 625: statement not executed.">        <span class="keyword">if</span> (handler == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;626</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 626: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 626: statement not executed.">            <span class="keyword">throw</span> <span class="keyword">new</span> NullPointerException(<span class="string">"Null lexical handler"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;627</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;628</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 628: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 628: statement not executed.">            <span class="keyword">this</span>.lexicalHandler = handler;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;629</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;630</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;631</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;632</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 632: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 632: method not entered.">    <span class="keyword">public</span> LexicalHandler getLexicalHandler() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;633</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 633: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 633: statement not executed.">        <span class="keyword">return</span> lexicalHandler;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;634</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;635</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;636</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// ContentHandler interface</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;637</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;638</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 638: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 638: method entered 1 time.">    <span class="keyword">public</span> <span class="keyword">void</span> setDocumentLocator(Locator locator) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;639</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 639: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 639: statement executed 1 time.">        <span class="keyword">super</span>.setDocumentLocator(locator);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;640</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;641</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;642</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 642: method entered 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 642: method entered 4 times.">    <span class="keyword">public</span> <span class="keyword">void</span> startDocument() <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;643</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 643: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 643: statement executed 4 times.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;644</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 644: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 644: statement executed 4 times.">            writeDeclaration();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;645</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 645: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 645: statement executed 4 times.">            <span class="keyword">super</span>.startDocument();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;646</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;647</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 647: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 647: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;648</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;649</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;650</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;651</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 651: method entered 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 651: method entered 4 times.">    <span class="keyword">public</span> <span class="keyword">void</span> endDocument() <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;652</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 652: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 652: statement executed 4 times.">        <span class="keyword">super</span>.endDocument();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;653</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;654</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 654: expression evaluated to true 0 times, false 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 654: expression evaluated to true 0 times, false 4 times.">        <span class="keyword">if</span> (autoFlush) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;655</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 655: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 655: statement not executed.">            <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;656</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 656: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 656: statement not executed.">                flush();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;657</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;658</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;659</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;660</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;661</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;662</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 662: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 662: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> startPrefixMapping(String prefix, String uri)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;663</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;664</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 664: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 664: statement not executed.">        <span class="keyword">if</span> (namespacesMap == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;665</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 665: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 665: statement not executed.">            namespacesMap = <span class="keyword">new</span> HashMap();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;666</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;667</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;668</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 668: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 668: statement not executed.">        namespacesMap.put(prefix, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;669</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 669: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 669: statement not executed.">        <span class="keyword">super</span>.startPrefixMapping(prefix, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;670</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;671</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;672</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 672: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 672: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> endPrefixMapping(String prefix) <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;673</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 673: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 673: statement not executed.">        <span class="keyword">super</span>.endPrefixMapping(prefix);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;674</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;675</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;676</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 676: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 676: method entered 8 times.">    <span class="keyword">public</span> <span class="keyword">void</span> startElement(String namespaceURI, String localName,</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;677</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            String qName, Attributes attributes) <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;678</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 678: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 678: statement executed 8 times.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;679</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 679: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 679: statement executed 8 times.">            charsAdded = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;680</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;681</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 681: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 681: statement executed 8 times.">            writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;682</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 682: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 682: statement executed 8 times.">            indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;683</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 683: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 683: statement executed 8 times.">            writer.write(<span class="string">"&lt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;684</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 684: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 684: statement executed 8 times.">            writer.write(qName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;685</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 685: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 685: statement executed 8 times.">            writeNamespaces();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;686</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 686: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 686: statement executed 8 times.">            writeAttributes(attributes);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;687</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 687: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 687: statement executed 8 times.">            writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;688</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 688: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 688: statement executed 8 times.">            ++indentLevel;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;689</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 689: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 689: statement executed 8 times.">            lastOutputNodeType = Node.ELEMENT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;690</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 690: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 690: statement executed 8 times.">            lastElementClosed = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;691</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;692</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 692: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 692: statement executed 8 times.">            <span class="keyword">super</span>.startElement(namespaceURI, localName, qName, attributes);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;693</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;694</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 694: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 694: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;695</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;696</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;697</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;698</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 698: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 698: method entered 8 times.">    <span class="keyword">public</span> <span class="keyword">void</span> endElement(String namespaceURI, String localName, String qName)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;699</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;700</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 700: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 700: statement executed 8 times.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;701</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 701: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 701: statement executed 8 times.">            charsAdded = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;702</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 702: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 702: statement executed 8 times.">            --indentLevel;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;703</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;704</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 704: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 704: statement executed 8 times.">            <span class="keyword">if</span> (lastElementClosed) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;705</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 705: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 705: statement executed 4 times.">                writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;706</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 706: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 706: statement executed 4 times.">                indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;707</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;708</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;709</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// XXXX: need to determine this using a stack and checking for</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;710</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// content / children</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;711</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 711: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 711: statement executed 8 times.">            <span class="keyword">boolean</span> hadContent = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;712</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;713</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 713: expression evaluated to true 8 times, false 0 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 713: expression evaluated to true 8 times, false 0 times.">            <span class="keyword">if</span> (hadContent) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;714</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 714: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 714: statement executed 8 times.">                writeClose(qName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;715</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;716</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 716: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 716: statement not executed.">                writeEmptyElementClose(qName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;717</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;718</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;719</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 719: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 719: statement executed 8 times.">            lastOutputNodeType = Node.ELEMENT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;720</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 720: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 720: statement executed 8 times.">            lastElementClosed = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;721</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;722</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 722: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 722: statement executed 8 times.">            <span class="keyword">super</span>.endElement(namespaceURI, localName, qName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;723</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;724</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 724: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 724: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;725</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;726</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;727</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;728</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 728: method entered 16 times.">&nbsp;16</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 728: method entered 16 times.">    <span class="keyword">public</span> <span class="keyword">void</span> characters(<span class="keyword">char</span>[] ch, <span class="keyword">int</span> start, <span class="keyword">int</span> length)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;729</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;730</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 730: statement executed 16 times.">&nbsp;16</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 730: statement executed 16 times.">        <span class="keyword">if</span> ((ch == <span class="keyword">null</span>) || (ch.length == 0) || (length &lt;= 0)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;731</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 731: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 731: statement executed 1 time.">            <span class="keyword">return</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;732</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;733</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;734</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 734: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 734: statement executed 15 times.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;735</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">/*</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;736</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">             * we can't use the writeString method here because it's possible we</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;737</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">             * don't receive all characters at once and calling writeString</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;738</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">             * would cause unwanted spaces to be added in between these chunks</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;739</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">             * of character arrays.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;740</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">             */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;741</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 741: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 741: statement executed 15 times.">            String string = String.valueOf(ch, start, length);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;742</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;743</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 743: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 743: statement executed 15 times.">            <span class="keyword">if</span> (escapeText) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;744</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 744: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 744: statement executed 14 times.">                string = escapeElementEntities(string);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;745</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;746</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;747</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 747: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 747: statement executed 15 times.">            <span class="keyword">if</span> (format.isTrimText()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;748</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 748: expression evaluated to true 0 times, false 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 748: expression evaluated to true 0 times, false 14 times.">                <span class="keyword">if</span> ((lastOutputNodeType == Node.TEXT_NODE) &amp;&amp; !charsAdded) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;749</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 749: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 749: statement not executed.">                    writer.write(' ');</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;750</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 750: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 750: statement executed 14 times.">                } <span class="keyword">else</span> <span class="keyword">if</span> (charsAdded &amp;&amp; Character.isWhitespace(lastChar)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;751</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 751: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 751: statement executed 1 time.">                    writer.write(' ');</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;752</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 752: statement executed 13 times.">&nbsp;13</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 752: statement executed 13 times.">                } <span class="keyword">else</span> <span class="keyword">if</span> (lastOutputNodeType == Node.ELEMENT_NODE</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;753</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        &amp;&amp; format.isPadText() &amp;&amp; lastElementClosed</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;754</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        &amp;&amp; Character.isWhitespace(ch[0])) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;755</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 755: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 755: statement executed 1 time.">                    writer.write(PAD_TEXT);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;756</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;757</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;758</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 758: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 758: statement executed 14 times.">                String delim = <span class="string">""</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;759</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 759: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 759: statement executed 14 times.">                StringTokenizer tokens = <span class="keyword">new</span> StringTokenizer(string);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;760</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;761</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 761: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 761: statement executed 14 times.">                <span class="keyword">while</span> (tokens.hasMoreTokens()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;762</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 762: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 762: statement executed 17 times.">                    writer.write(delim);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;763</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 763: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 763: statement executed 17 times.">                    writer.write(tokens.nextToken());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;764</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 764: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 764: statement executed 17 times.">                    delim = <span class="string">" "</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;765</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;766</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;767</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 767: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 767: statement executed 1 time.">                writer.write(string);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;768</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;769</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;770</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 770: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 770: statement executed 15 times.">            charsAdded = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;771</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 771: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 771: statement executed 15 times.">            lastChar = ch[(start + length) - 1];</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;772</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 772: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 772: statement executed 15 times.">            lastOutputNodeType = Node.TEXT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;773</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;774</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 774: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 774: statement executed 15 times.">            <span class="keyword">super</span>.characters(ch, start, length);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;775</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;776</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 776: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 776: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;777</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;778</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;779</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;780</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 780: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 780: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> ignorableWhitespace(<span class="keyword">char</span>[] ch, <span class="keyword">int</span> start, <span class="keyword">int</span> length)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;781</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;782</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 782: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 782: statement not executed.">        <span class="keyword">super</span>.ignorableWhitespace(ch, start, length);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;783</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;784</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;785</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 785: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 785: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> processingInstruction(String target, String data)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;786</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;787</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 787: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 787: statement not executed.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;788</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 788: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 788: statement not executed.">            indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;789</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 789: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 789: statement not executed.">            writer.write(<span class="string">"&lt;?"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;790</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 790: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 790: statement not executed.">            writer.write(target);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;791</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 791: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 791: statement not executed.">            writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;792</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 792: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 792: statement not executed.">            writer.write(data);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;793</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 793: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 793: statement not executed.">            writer.write(<span class="string">"?&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;794</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 794: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 794: statement not executed.">            writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;795</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 795: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 795: statement not executed.">            lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;796</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;797</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 797: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 797: statement not executed.">            <span class="keyword">super</span>.processingInstruction(target, data);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;798</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;799</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 799: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 799: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;800</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;801</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;802</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;803</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// DTDHandler interface</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;804</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;805</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 805: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 805: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> notationDecl(String name, String publicID, String systemID)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;806</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;807</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 807: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 807: statement not executed.">        <span class="keyword">super</span>.notationDecl(name, publicID, systemID);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;808</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;809</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;810</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 810: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 810: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> unparsedEntityDecl(String name, String publicID,</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;811</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            String systemID, String notationName) <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;812</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 812: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 812: statement not executed.">        <span class="keyword">super</span>.unparsedEntityDecl(name, publicID, systemID, notationName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;813</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;814</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;815</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// LexicalHandler interface</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;816</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;817</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 817: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 817: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> startDTD(String name, String publicID, String systemID)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;818</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> SAXException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;819</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 819: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 819: statement not executed.">        inDTD = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;820</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;821</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 821: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 821: statement not executed.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;822</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 822: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 822: statement not executed.">            writeDocType(name, publicID, systemID);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;823</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;824</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 824: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 824: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;825</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;826</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;827</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 827: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 827: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;828</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 828: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 828: statement not executed.">            lexicalHandler.startDTD(name, publicID, systemID);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;829</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;830</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;831</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;832</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 832: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 832: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> endDTD() <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;833</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 833: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 833: statement not executed.">        inDTD = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;834</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;835</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 835: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 835: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;836</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 836: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 836: statement not executed.">            lexicalHandler.endDTD();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;837</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;838</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;839</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;840</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 840: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 840: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> startCDATA() <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;841</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 841: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 841: statement not executed.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;842</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 842: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 842: statement not executed.">            writer.write(<span class="string">"&lt;![CDATA["</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;843</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;844</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 844: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 844: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;845</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;846</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;847</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 847: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 847: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;848</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 848: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 848: statement not executed.">            lexicalHandler.startCDATA();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;849</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;850</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;851</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;852</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 852: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 852: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> endCDATA() <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;853</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 853: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 853: statement not executed.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;854</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 854: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 854: statement not executed.">            writer.write(<span class="string">"]]&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;855</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;856</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 856: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 856: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;857</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;858</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;859</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 859: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 859: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;860</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 860: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 860: statement not executed.">            lexicalHandler.endCDATA();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;861</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;862</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;863</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;864</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 864: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 864: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> startEntity(String name) <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;865</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 865: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 865: statement not executed.">        <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;866</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 866: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 866: statement not executed.">            writeEntityRef(name);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;867</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;868</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 868: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 868: statement not executed.">            handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;869</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;870</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;871</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 871: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 871: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;872</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 872: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 872: statement not executed.">            lexicalHandler.startEntity(name);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;873</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;874</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;875</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;876</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 876: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 876: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> endEntity(String name) <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;877</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 877: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 877: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;878</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 878: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 878: statement not executed.">            lexicalHandler.endEntity(name);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;879</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;880</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;881</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;882</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 882: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 882: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> comment(<span class="keyword">char</span>[] ch, <span class="keyword">int</span> start, <span class="keyword">int</span> length) <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;883</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 883: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 883: statement not executed.">        <span class="keyword">if</span> (showCommentsInDTDs || !inDTD) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;884</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 884: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 884: statement not executed.">            <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;885</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 885: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 885: statement not executed.">                charsAdded = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;886</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 886: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 886: statement not executed.">                writeComment(<span class="keyword">new</span> String(ch, start, length));</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;887</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">catch</span> (IOException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;888</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 888: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 888: statement not executed.">                handleException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;889</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;890</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;891</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;892</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 892: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 892: statement not executed.">        <span class="keyword">if</span> (lexicalHandler != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;893</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 893: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 893: statement not executed.">            lexicalHandler.comment(ch, start, length);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;894</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;895</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;896</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;897</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// Implementation methods</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;898</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;899</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 899: method entered 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 899: method entered 20077 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeElement(Element element) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;900</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 900: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 900: statement executed 20077 times.">        <span class="keyword">int</span> size = element.nodeCount();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;901</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 901: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 901: statement executed 20077 times.">        String qualifiedName = element.getQualifiedName();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;902</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;903</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 903: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 903: statement executed 20077 times.">        writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;904</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 904: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 904: statement executed 20077 times.">        indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;905</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;906</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 906: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 906: statement executed 20077 times.">        writer.write(<span class="string">"&lt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;907</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 907: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 907: statement executed 20077 times.">        writer.write(qualifiedName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;908</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;909</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 909: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 909: statement executed 20077 times.">        <span class="keyword">int</span> previouslyDeclaredNamespaces = namespaceStack.size();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;910</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 910: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 910: statement executed 20077 times.">        Namespace ns = element.getNamespace();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;911</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;912</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 912: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 912: statement executed 20077 times.">        <span class="keyword">if</span> (isNamespaceDeclaration(ns)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;913</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 913: statement executed 602 times.">&nbsp;602</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 913: statement executed 602 times.">            namespaceStack.push(ns);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;914</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 914: statement executed 602 times.">&nbsp;602</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 914: statement executed 602 times.">            writeNamespace(ns);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;915</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;916</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;917</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// Print out additional namespace declarations</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;918</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 918: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 918: statement executed 20077 times.">        <span class="keyword">boolean</span> textOnly = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;919</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;920</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 920: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 920: statement executed 20077 times.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0; i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;921</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 921: statement executed 56305 times.">&nbsp;56305</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 921: statement executed 56305 times.">            Node node = element.node(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;922</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;923</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 923: statement executed 56305 times.">&nbsp;56305</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 923: statement executed 56305 times.">            <span class="keyword">if</span> (node <span class="keyword">instanceof</span> Namespace) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;924</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 924: statement executed 198 times.">&nbsp;198</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 924: statement executed 198 times.">                Namespace additional = (Namespace) node;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;925</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;926</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 926: statement executed 198 times.">&nbsp;198</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 926: statement executed 198 times.">                <span class="keyword">if</span> (isNamespaceDeclaration(additional)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;927</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 927: statement executed 16 times.">&nbsp;16</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 927: statement executed 16 times.">                    namespaceStack.push(additional);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;928</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 928: statement executed 16 times.">&nbsp;16</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 928: statement executed 16 times.">                    writeNamespace(additional);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;929</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;930</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 930: statement executed 56107 times.">&nbsp;56107</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 930: statement executed 56107 times.">            } <span class="keyword">else</span> <span class="keyword">if</span> (node <span class="keyword">instanceof</span> Element) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;931</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 931: statement executed 17921 times.">&nbsp;17921</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 931: statement executed 17921 times.">                textOnly = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;932</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 932: statement executed 38186 times.">&nbsp;38186</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 932: statement executed 38186 times.">            } <span class="keyword">else</span> <span class="keyword">if</span> (node <span class="keyword">instanceof</span> Comment) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;933</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 933: statement executed 445 times.">&nbsp;445</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 933: statement executed 445 times.">                textOnly = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;934</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;935</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;936</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;937</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 937: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 937: statement executed 20077 times.">        writeAttributes(element);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;938</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;939</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 939: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 939: statement executed 20077 times.">        lastOutputNodeType = Node.ELEMENT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;940</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;941</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 941: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 941: statement executed 20077 times.">        <span class="keyword">if</span> (size &lt;= 0) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;942</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 942: statement executed 300 times.">&nbsp;300</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 942: statement executed 300 times.">            writeEmptyElementClose(qualifiedName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;943</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;944</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 944: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 944: statement executed 19777 times.">            writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;945</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;946</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 946: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 946: statement executed 19777 times.">            <span class="keyword">if</span> (textOnly) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;947</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// we have at least one text node so lets assume</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;948</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// that its non-empty</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;949</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 949: statement executed 14954 times.">&nbsp;14954</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 949: statement executed 14954 times.">                writeElementContent(element);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;950</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;951</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// we know it's not null or empty from above</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;952</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 952: statement executed 4823 times.">&nbsp;4823</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 952: statement executed 4823 times.">                ++indentLevel;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;953</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;954</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 954: statement executed 4823 times.">&nbsp;4823</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 954: statement executed 4823 times.">                writeElementContent(element);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;955</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;956</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 956: statement executed 4823 times.">&nbsp;4823</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 956: statement executed 4823 times.">                --indentLevel;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;957</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;958</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 958: statement executed 4823 times.">&nbsp;4823</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 958: statement executed 4823 times.">                writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;959</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 959: statement executed 4823 times.">&nbsp;4823</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 959: statement executed 4823 times.">                indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;960</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;961</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;962</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 962: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 962: statement executed 19777 times.">            writer.write(<span class="string">"&lt;/"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;963</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 963: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 963: statement executed 19777 times.">            writer.write(qualifiedName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;964</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 964: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 964: statement executed 19777 times.">            writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;965</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;966</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;967</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// remove declared namespaceStack from stack</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;968</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 968: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 968: statement executed 20077 times.">        <span class="keyword">while</span> (namespaceStack.size() &gt; previouslyDeclaredNamespaces) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;969</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 969: statement executed 620 times.">&nbsp;620</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 969: statement executed 620 times.">            namespaceStack.pop();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;970</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;971</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;972</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 972: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 972: statement executed 20077 times.">        lastOutputNodeType = Node.ELEMENT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;973</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;974</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;975</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;976</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Determines if element is a special case of XML elements where it contains</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;977</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * an xml:space attribute of "preserve". If it does, then retain whitespace.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;978</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;979</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;980</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;981</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;982</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;983</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;984</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 984: method entered 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 984: method entered 93 times.">    <span class="keyword">protected</span> final <span class="keyword">boolean</span> isElementSpacePreserved(Element element) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;985</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 985: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 985: statement executed 93 times.">        final Attribute attr = (Attribute) element.attribute(<span class="string">"space"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;986</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 986: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 986: statement executed 93 times.">        <span class="keyword">boolean</span> preserveFound = preserve; <span class="comment">// default to global state</span></A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;987</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;988</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 988: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 988: statement executed 93 times.">        <span class="keyword">if</span> (attr != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;989</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 989: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 989: statement executed 5 times.">            <span class="keyword">if</span> (<span class="string">"xml"</span>.equals(attr.getNamespacePrefix())</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;990</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    &amp;&amp; <span class="string">"preserve"</span>.equals(attr.getText())) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;991</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 991: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 991: statement executed 4 times.">                preserveFound = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;992</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;993</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 993: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 993: statement executed 1 time.">                preserveFound = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;994</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;995</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;996</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;997</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 997: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 997: statement executed 93 times.">        <span class="keyword">return</span> preserveFound;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;998</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;999</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1000</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1001</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Outputs the content of the given element. If whitespace trimming is</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1002</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * enabled then all adjacent text nodes are appended together before the</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1003</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * whitespace trimming occurs to avoid problems with multiple text nodes</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1004</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * being created due to text content that spans parser buffers in a SAX</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1005</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * parser.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1006</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1007</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1008</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1009</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1010</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1011</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1012</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1013</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1013: method entered 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1013: method entered 19777 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeElementContent(Element element) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1014</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1014: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1014: statement executed 19777 times.">        <span class="keyword">boolean</span> trim = format.isTrimText();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1015</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1015: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1015: statement executed 19777 times.">        <span class="keyword">boolean</span> oldPreserve = preserve;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1016</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1017</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1017: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1017: statement executed 19777 times.">        <span class="keyword">if</span> (trim) { <span class="comment">// verify we have to before more expensive test</span></A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1018</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1018: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1018: statement executed 93 times.">            preserve = isElementSpacePreserved(element);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1019</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1019: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1019: statement executed 93 times.">            trim = !preserve;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1020</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1021</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1022</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1022: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1022: statement executed 19777 times.">        <span class="keyword">if</span> (trim) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1023</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// concatenate adjacent text nodes together</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1024</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// so that whitespace trimming works properly</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1025</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1025: statement executed 82 times.">&nbsp;82</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1025: statement executed 82 times.">            Text lastTextNode = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1026</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1026: statement executed 82 times.">&nbsp;82</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1026: statement executed 82 times.">            StringBuffer buff = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1027</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1027: statement executed 82 times.">&nbsp;82</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1027: statement executed 82 times.">            <span class="keyword">boolean</span> textOnly = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1028</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1029</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1029: statement executed 82 times.">&nbsp;82</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1029: statement executed 82 times.">            <span class="keyword">for</span> (<span class="keyword">int</span> i = 0, size = element.nodeCount(); i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1030</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1030: statement executed 146 times.">&nbsp;146</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1030: statement executed 146 times.">                Node node = element.node(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1031</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1032</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1032: statement executed 146 times.">&nbsp;146</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1032: statement executed 146 times.">                <span class="keyword">if</span> (node <span class="keyword">instanceof</span> Text) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1033</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1033: statement executed 76 times.">&nbsp;76</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1033: statement executed 76 times.">                    <span class="keyword">if</span> (lastTextNode == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1034</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1034: statement executed 53 times.">&nbsp;53</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1034: statement executed 53 times.">                        lastTextNode = (Text) node;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1035</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1036</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1036: statement executed 23 times.">&nbsp;23</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1036: statement executed 23 times.">                        <span class="keyword">if</span> (buff == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1037</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1037: statement executed 9 times.">&nbsp;9</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1037: statement executed 9 times.">                            buff = <span class="keyword">new</span> StringBuffer(lastTextNode.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1038</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1039</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1040</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1040: statement executed 23 times.">&nbsp;23</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1040: statement executed 23 times.">                        buff.append(((Text) node).getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1041</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1042</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1043</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1043: statement executed 70 times.">&nbsp;70</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1043: statement executed 70 times.">                    <span class="keyword">if</span> (!textOnly &amp;&amp; format.isPadText()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1044</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        <span class="comment">// only add the PAD_TEXT if the text itself starts with</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1045</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        <span class="comment">// whitespace</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1046</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1046: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1046: statement executed 7 times.">                        <span class="keyword">char</span> firstChar = 'a';</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1047</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1047: expression evaluated to true 0 times, false 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1047: expression evaluated to true 0 times, false 7 times.">                        <span class="keyword">if</span> (buff != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1048</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1048: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1048: statement not executed.">                            firstChar = buff.charAt(0);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1049</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1049: expression evaluated to true 0 times, false 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1049: expression evaluated to true 0 times, false 7 times.">                        } <span class="keyword">else</span> <span class="keyword">if</span> (lastTextNode != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1050</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1050: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1050: statement not executed.">                            firstChar = lastTextNode.getText().charAt(0);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1051</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1052</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1053</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1053: expression evaluated to true 0 times, false 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1053: expression evaluated to true 0 times, false 7 times.">                        <span class="keyword">if</span> (Character.isWhitespace(firstChar)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1054</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1054: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1054: statement not executed.">                            writer.write(PAD_TEXT);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1055</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1056</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1057</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1058</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1058: statement executed 70 times.">&nbsp;70</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1058: statement executed 70 times.">                    <span class="keyword">if</span> (lastTextNode != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1059</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1059: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1059: statement executed 17 times.">                        <span class="keyword">if</span> (buff != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1060</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1060: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1060: statement executed 2 times.">                            writeString(buff.toString());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1061</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1061: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1061: statement executed 2 times.">                            buff = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1062</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1063</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1063: statement executed 15 times.">&nbsp;15</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1063: statement executed 15 times.">                            writeString(lastTextNode.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1064</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1065</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1066</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1066: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1066: statement executed 17 times.">                        <span class="keyword">if</span> (format.isPadText()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1067</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                            <span class="comment">// only add the PAD_TEXT if the text itself ends</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1068</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                            <span class="comment">// with whitespace</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1069</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1069: statement executed 10 times.">&nbsp;10</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1069: statement executed 10 times.">                            <span class="keyword">char</span> lastTextChar = 'a';</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1070</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1070: expression evaluated to true 0 times, false 10 times.">&nbsp;10</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1070: expression evaluated to true 0 times, false 10 times.">                            <span class="keyword">if</span> (buff != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1071</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1071: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1071: statement not executed.">                                lastTextChar = buff.charAt(buff.length() - 1);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1072</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1072: expression evaluated to true 10 times, false 0 times.">&nbsp;10</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1072: expression evaluated to true 10 times, false 0 times.">                            } <span class="keyword">else</span> <span class="keyword">if</span> (lastTextNode != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1073</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1073: statement executed 10 times.">&nbsp;10</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1073: statement executed 10 times.">                                String txt = lastTextNode.getText();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1074</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1074: statement executed 10 times.">&nbsp;10</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1074: statement executed 10 times.">                                lastTextChar = txt.charAt(txt.length() - 1);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1075</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1076</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1077</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1077: statement executed 10 times.">&nbsp;10</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1077: statement executed 10 times.">                            <span class="keyword">if</span> (Character.isWhitespace(lastTextChar)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1078</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1078: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1078: statement executed 1 time.">                                writer.write(PAD_TEXT);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1079</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1080</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1081</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1082</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1082: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1082: statement executed 17 times.">                        lastTextNode = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1083</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1084</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1085</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1085: statement executed 70 times.">&nbsp;70</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1085: statement executed 70 times.">                    textOnly = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1086</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1086: statement executed 70 times.">&nbsp;70</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1086: statement executed 70 times.">                    writeNode(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1087</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1088</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1089</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1090</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1090: statement executed 82 times.">&nbsp;82</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1090: statement executed 82 times.">            <span class="keyword">if</span> (lastTextNode != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1091</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1091: statement executed 36 times.">&nbsp;36</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1091: statement executed 36 times.">                <span class="keyword">if</span> (!textOnly &amp;&amp; format.isPadText()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1092</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// only add the PAD_TEXT if the text itself starts with</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1093</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// whitespace</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1094</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1094: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1094: statement executed 3 times.">                    <span class="keyword">char</span> firstChar = 'a';</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1095</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1095: expression evaluated to true 0 times, false 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1095: expression evaluated to true 0 times, false 3 times.">                    <span class="keyword">if</span> (buff != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1096</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1096: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1096: statement not executed.">                        firstChar = buff.charAt(0);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1097</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1098</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1098: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1098: statement executed 3 times.">                        firstChar = lastTextNode.getText().charAt(0);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1099</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1100</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1101</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1101: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1101: statement executed 3 times.">                    <span class="keyword">if</span> (Character.isWhitespace(firstChar)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1102</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1102: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1102: statement executed 2 times.">                        writer.write(PAD_TEXT);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1103</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1104</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1105</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1106</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1106: statement executed 36 times.">&nbsp;36</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1106: statement executed 36 times.">                <span class="keyword">if</span> (buff != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1107</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1107: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1107: statement executed 7 times.">                    writeString(buff.toString());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1108</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1108: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1108: statement executed 7 times.">                    buff = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1109</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1110</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1110: statement executed 29 times.">&nbsp;29</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1110: statement executed 29 times.">                    writeString(lastTextNode.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1111</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1112</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1113</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1113: statement executed 36 times.">&nbsp;36</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1113: statement executed 36 times.">                lastTextNode = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1114</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1115</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1116</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1116: statement executed 19695 times.">&nbsp;19695</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1116: statement executed 19695 times.">            Node lastTextNode = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1117</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1118</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1118: statement executed 19695 times.">&nbsp;19695</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1118: statement executed 19695 times.">            <span class="keyword">for</span> (<span class="keyword">int</span> i = 0, size = element.nodeCount(); i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1119</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1119: statement executed 56159 times.">&nbsp;56159</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1119: statement executed 56159 times.">                Node node = element.node(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1120</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1121</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1121: statement executed 56159 times.">&nbsp;56159</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1121: statement executed 56159 times.">                <span class="keyword">if</span> (node <span class="keyword">instanceof</span> Text) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1122</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1122: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1122: statement executed 37643 times.">                    writeNode(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1123</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1123: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1123: statement executed 37643 times.">                    lastTextNode = node;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1124</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1125</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1125: expression evaluated to true 0 times, false 18516 times.">&nbsp;18516</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1125: expression evaluated to true 0 times, false 18516 times.">                    <span class="keyword">if</span> ((lastTextNode != <span class="keyword">null</span>) &amp;&amp; format.isPadText()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1126</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        <span class="comment">// only add the PAD_TEXT if the text itself ends with</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1127</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        <span class="comment">// whitespace</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1128</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1128: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1128: statement not executed.">                        String txt = lastTextNode.getText();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1129</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1129: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1129: statement not executed.">                        <span class="keyword">char</span> lastTextChar = txt.charAt(txt.length() - 1);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1130</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1131</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1131: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1131: statement not executed.">                        <span class="keyword">if</span> (Character.isWhitespace(lastTextChar)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1132</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1132: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1132: statement not executed.">                            writer.write(PAD_TEXT);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1133</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1134</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1135</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1136</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1136: statement executed 18516 times.">&nbsp;18516</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1136: statement executed 18516 times.">                    writeNode(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1137</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1138</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// if ((lastTextNode != null) &amp;&amp; format.isPadText()) {</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1139</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// writer.write(PAD_TEXT);</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1140</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// }</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1141</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1142</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1142: statement executed 18516 times.">&nbsp;18516</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1142: statement executed 18516 times.">                    lastTextNode = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1143</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1144</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1145</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1146</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1147</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1147: statement executed 19777 times.">&nbsp;19777</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1147: statement executed 19777 times.">        preserve = oldPreserve;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1148</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1149</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1150</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1150: method entered 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1150: method entered 21 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeCDATA(String text) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1151</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1151: statement executed 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1151: statement executed 21 times.">        writer.write(<span class="string">"&lt;![CDATA["</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1152</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1153</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1153: statement executed 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1153: statement executed 21 times.">        <span class="keyword">if</span> (text != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1154</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1154: statement executed 17 times.">&nbsp;17</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1154: statement executed 17 times.">            writer.write(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1155</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1156</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1157</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1157: statement executed 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1157: statement executed 21 times.">        writer.write(<span class="string">"]]&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1158</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1159</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1159: statement executed 21 times.">&nbsp;21</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1159: statement executed 21 times.">        lastOutputNodeType = Node.CDATA_SECTION_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1160</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1161</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1162</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1162: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1162: method entered 1 time.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeDocType(DocumentType docType) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1163</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1163: expression evaluated to true 1 time, false 0 times.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1163: expression evaluated to true 1 time, false 0 times.">        <span class="keyword">if</span> (docType != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1164</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1164: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1164: statement executed 1 time.">            docType.write(writer);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1165</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1165: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1165: statement executed 1 time.">            writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1166</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1167</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1168</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1169</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1169: method entered 618 times.">&nbsp;618</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1169: method entered 618 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeNamespace(Namespace namespace) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1170</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1170: expression evaluated to true 618 times, false 0 times.">&nbsp;618</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1170: expression evaluated to true 618 times, false 0 times.">        <span class="keyword">if</span> (namespace != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1171</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1171: statement executed 618 times.">&nbsp;618</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1171: statement executed 618 times.">            writeNamespace(namespace.getPrefix(), namespace.getURI());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1172</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1173</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1174</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1175</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1176</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the SAX namepsaces</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1177</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1178</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1179</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1180</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1181</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1181: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1181: method entered 8 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeNamespaces() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1182</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1182: expression evaluated to true 0 times, false 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1182: expression evaluated to true 0 times, false 8 times.">        <span class="keyword">if</span> (namespacesMap != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1183</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1183: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1183: statement not executed.">            <span class="keyword">for</span> (Iterator iter = namespacesMap.entrySet().iterator(); iter</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1184</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    .hasNext();) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1185</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1185: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1185: statement not executed.">                Map.Entry entry = (Map.Entry) iter.next();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1186</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1186: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1186: statement not executed.">                String prefix = (String) entry.getKey();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1187</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1187: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1187: statement not executed.">                String uri = (String) entry.getValue();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1188</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1188: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1188: statement not executed.">                writeNamespace(prefix, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1189</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1190</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1191</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1191: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1191: statement not executed.">            namespacesMap = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1192</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1193</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1194</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1195</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1196</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the SAX namepsaces</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1197</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1198</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> prefix</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1199</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            the prefix</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1200</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> uri</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1201</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            the namespace uri</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1202</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1203</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1204</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1205</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1205: method entered 620 times.">&nbsp;620</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1205: method entered 620 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeNamespace(String prefix, String uri) </A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1206</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> IOException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1207</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1207: statement executed 620 times.">&nbsp;620</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1207: statement executed 620 times.">        <span class="keyword">if</span> ((prefix != <span class="keyword">null</span>) &amp;&amp; (prefix.length() &gt; 0)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1208</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1208: statement executed 566 times.">&nbsp;566</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1208: statement executed 566 times.">            writer.write(<span class="string">" xmlns:"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1209</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1209: statement executed 566 times.">&nbsp;566</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1209: statement executed 566 times.">            writer.write(prefix);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1210</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1210: statement executed 566 times.">&nbsp;566</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1210: statement executed 566 times.">            writer.write(<span class="string">"=\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1211</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1212</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1212: statement executed 54 times.">&nbsp;54</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1212: statement executed 54 times.">            writer.write(<span class="string">" xmlns=\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1213</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1214</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1215</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1215: statement executed 620 times.">&nbsp;620</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1215: statement executed 620 times.">        writer.write(uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1216</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1216: statement executed 620 times.">&nbsp;620</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1216: statement executed 620 times.">        writer.write(<span class="string">"\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1217</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1218</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1219</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1219: method entered 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1219: method entered 1 time.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeProcessingInstruction(ProcessingInstruction pi)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1220</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> IOException {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1221</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// indent();</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1222</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1222: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1222: statement executed 1 time.">        writer.write(<span class="string">"&lt;?"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1223</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1223: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1223: statement executed 1 time.">        writer.write(pi.getName());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1224</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1224: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1224: statement executed 1 time.">        writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1225</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1225: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1225: statement executed 1 time.">        writer.write(pi.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1226</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1226: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1226: statement executed 1 time.">        writer.write(<span class="string">"?&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1227</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1227: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1227: statement executed 1 time.">        writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1228</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1229</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1229: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1229: statement executed 1 time.">        lastOutputNodeType = Node.PROCESSING_INSTRUCTION_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1230</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1231</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1232</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1232: method entered 53 times.">&nbsp;53</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1232: method entered 53 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeString(String text) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1233</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1233: statement executed 53 times.">&nbsp;53</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1233: statement executed 53 times.">        <span class="keyword">if</span> ((text != <span class="keyword">null</span>) &amp;&amp; (text.length() &gt; 0)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1234</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1234: expression evaluated to true 51 times, false 0 times.">&nbsp;51</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1234: expression evaluated to true 51 times, false 0 times.">            <span class="keyword">if</span> (escapeText) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1235</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1235: statement executed 51 times.">&nbsp;51</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1235: statement executed 51 times.">                text = escapeElementEntities(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1236</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1237</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1238</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// if (format.isPadText()) {</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1239</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// if (lastOutputNodeType == Node.ELEMENT_NODE) {</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1240</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// writer.write(PAD_TEXT);</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1241</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// }</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1242</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// }</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1243</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1243: expression evaluated to true 51 times, false 0 times.">&nbsp;51</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1243: expression evaluated to true 51 times, false 0 times.">            <span class="keyword">if</span> (format.isTrimText()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1244</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1244: statement executed 51 times.">&nbsp;51</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1244: statement executed 51 times.">                <span class="keyword">boolean</span> first = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1245</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1245: statement executed 51 times.">&nbsp;51</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1245: statement executed 51 times.">                StringTokenizer tokenizer = <span class="keyword">new</span> StringTokenizer(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1246</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1247</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1247: statement executed 51 times.">&nbsp;51</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1247: statement executed 51 times.">                <span class="keyword">while</span> (tokenizer.hasMoreTokens()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1248</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1248: statement executed 134 times.">&nbsp;134</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1248: statement executed 134 times.">                    String token = tokenizer.nextToken();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1249</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1250</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1250: statement executed 134 times.">&nbsp;134</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1250: statement executed 134 times.">                    <span class="keyword">if</span> (first) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1251</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1251: statement executed 47 times.">&nbsp;47</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1251: statement executed 47 times.">                        first = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1252</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1253</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1253: expression evaluated to true 0 times, false 47 times.">&nbsp;47</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1253: expression evaluated to true 0 times, false 47 times.">                        <span class="keyword">if</span> (lastOutputNodeType == Node.TEXT_NODE) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1254</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1254: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1254: statement not executed.">                            writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1255</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1256</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1257</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1257: statement executed 87 times.">&nbsp;87</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1257: statement executed 87 times.">                        writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1258</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1259</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1260</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1260: statement executed 134 times.">&nbsp;134</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1260: statement executed 134 times.">                    writer.write(token);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1261</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1261: statement executed 134 times.">&nbsp;134</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1261: statement executed 134 times.">                    lastOutputNodeType = Node.TEXT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1262</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1262: statement executed 134 times.">&nbsp;134</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1262: statement executed 134 times.">                    lastChar = token.charAt(token.length() - 1);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1263</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1264</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1265</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1265: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1265: statement not executed.">                lastOutputNodeType = Node.TEXT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1266</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1266: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1266: statement not executed.">                writer.write(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1267</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1267: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1267: statement not executed.">                lastChar = text.charAt(text.length() - 1);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1268</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1269</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1270</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1271</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1272</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1273</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * This method is used to write out Nodes that contain text and still allow</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1274</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * for xml:space to be handled properly.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1275</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1276</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> node</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1277</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1278</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1279</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1280</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1281</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1282</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1282: method entered 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1282: method entered 37643 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeNodeText(Node node) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1283</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1283: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1283: statement executed 37643 times.">        String text = node.getText();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1284</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1285</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1285: expression evaluated to true 37643 times, false 0 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1285: expression evaluated to true 37643 times, false 0 times.">        <span class="keyword">if</span> ((text != <span class="keyword">null</span>) &amp;&amp; (text.length() &gt; 0)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1286</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1286: expression evaluated to true 37643 times, false 0 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1286: expression evaluated to true 37643 times, false 0 times.">            <span class="keyword">if</span> (escapeText) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1287</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1287: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1287: statement executed 37643 times.">                text = escapeElementEntities(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1288</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1289</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1290</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1290: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1290: statement executed 37643 times.">            lastOutputNodeType = Node.TEXT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1291</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1291: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1291: statement executed 37643 times.">            writer.write(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1292</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1292: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1292: statement executed 37643 times.">            lastChar = text.charAt(text.length() - 1);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1293</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1294</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1295</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1296</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1296: method entered 56346 times.">&nbsp;56346</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1296: method entered 56346 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeNode(Node node) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1297</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1297: statement executed 56346 times.">&nbsp;56346</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1297: statement executed 56346 times.">        <span class="keyword">int</span> nodeType = node.getNodeType();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1298</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1299</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1299: statement executed 56346 times.">&nbsp;56346</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1299: statement executed 56346 times.">        <span class="keyword">switch</span> (nodeType) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1300</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1300: statement executed 18034 times.">&nbsp;18034</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1300: statement executed 18034 times.">            <span class="keyword">case</span> Node.ELEMENT_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1301</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1301: statement executed 18034 times.">&nbsp;18034</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1301: statement executed 18034 times.">                writeElement((Element) node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1302</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1303</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1303: statement executed 18034 times.">&nbsp;18034</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1303: statement executed 18034 times.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1304</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1305</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1305: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1305: statement not executed.">            <span class="keyword">case</span> Node.ATTRIBUTE_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1306</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1306: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1306: statement not executed.">                writeAttribute((Attribute) node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1307</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1308</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1308: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1308: statement not executed.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1309</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1310</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1310: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1310: statement executed 37643 times.">            <span class="keyword">case</span> Node.TEXT_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1311</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1311: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1311: statement executed 37643 times.">                writeNodeText(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1312</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1313</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// write((Text) node);</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1314</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1314: statement executed 37643 times.">&nbsp;37643</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1314: statement executed 37643 times.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1315</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1316</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1316: statement executed 22 times.">&nbsp;22</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1316: statement executed 22 times.">            <span class="keyword">case</span> Node.CDATA_SECTION_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1317</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1317: statement executed 22 times.">&nbsp;22</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1317: statement executed 22 times.">                writeCDATA(node.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1318</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1319</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1319: statement executed 22 times.">&nbsp;22</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1319: statement executed 22 times.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1320</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1321</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1321: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1321: statement not executed.">            <span class="keyword">case</span> Node.ENTITY_REFERENCE_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1322</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1322: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1322: statement not executed.">                writeEntity((Entity) node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1323</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1324</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1324: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1324: statement not executed.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1325</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1326</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1326: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1326: statement executed 1 time.">            <span class="keyword">case</span> Node.PROCESSING_INSTRUCTION_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1327</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1327: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1327: statement executed 1 time.">                writeProcessingInstruction((ProcessingInstruction) node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1328</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1329</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1329: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1329: statement executed 1 time.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1330</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1331</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1331: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1331: statement executed 447 times.">            <span class="keyword">case</span> Node.COMMENT_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1332</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1332: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1332: statement executed 447 times.">                writeComment(node.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1333</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1334</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1334: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1334: statement executed 447 times.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1335</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1336</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1336: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1336: statement executed 1 time.">            <span class="keyword">case</span> Node.DOCUMENT_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1337</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1337: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1337: statement executed 1 time.">                write((Document) node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1338</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1339</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1339: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1339: statement executed 1 time.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1340</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1341</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1341: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1341: statement not executed.">            <span class="keyword">case</span> Node.DOCUMENT_TYPE_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1342</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1342: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1342: statement not executed.">                writeDocType((DocumentType) node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1343</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1344</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1344: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1344: statement not executed.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1345</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1346</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1346: statement executed 198 times.">&nbsp;198</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1346: statement executed 198 times.">            <span class="keyword">case</span> Node.NAMESPACE_NODE:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1347</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1348</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// Will be output with attributes</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1349</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// write((Namespace) node);</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1350</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1350: statement executed 198 times.">&nbsp;198</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1350: statement executed 198 times.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1351</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1352</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1352: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1352: statement not executed.">            <span class="keyword">default</span>:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1353</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1353: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1353: statement not executed.">                <span class="keyword">throw</span> <span class="keyword">new</span> IOException(<span class="string">"Invalid node type: "</span> + node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1354</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1355</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1356</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1357</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1357: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1357: method not entered.">    <span class="keyword">protected</span> <span class="keyword">void</span> installLexicalHandler() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1358</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1358: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1358: statement not executed.">        XMLReader parent = getParent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1359</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1360</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1360: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1360: statement not executed.">        <span class="keyword">if</span> (parent == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1361</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1361: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1361: statement not executed.">            <span class="keyword">throw</span> <span class="keyword">new</span> NullPointerException(<span class="string">"No parent for filter"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1362</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1363</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1364</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// try to register for lexical events</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1365</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1365: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1365: statement not executed.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0; i &lt; LEXICAL_HANDLER_NAMES.length; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1366</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1366: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1366: statement not executed.">            <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1367</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1367: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1367: statement not executed.">                parent.setProperty(LEXICAL_HANDLER_NAMES[i], <span class="keyword">this</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1368</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1369</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1369: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1369: statement not executed.">                <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1370</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">catch</span> (SAXNotRecognizedException ex) {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1371</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// ignore</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1372</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">catch</span> (SAXNotSupportedException ex) {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1373</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                <span class="comment">// ignore</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1374</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1375</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1376</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1377</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1378</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1378: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1378: method not entered.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeDocType(String name, String publicID, String systemID)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1379</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> IOException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1380</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1380: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1380: statement not executed.">        <span class="keyword">boolean</span> hasPublic = <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1381</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1382</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1382: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1382: statement not executed.">        writer.write(<span class="string">"&lt;!DOCTYPE "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1383</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1383: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1383: statement not executed.">        writer.write(name);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1384</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1385</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1385: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1385: statement not executed.">        <span class="keyword">if</span> ((publicID != <span class="keyword">null</span>) &amp;&amp; (!publicID.equals(<span class="string">""</span>))) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1386</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1386: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1386: statement not executed.">            writer.write(<span class="string">" PUBLIC \""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1387</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1387: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1387: statement not executed.">            writer.write(publicID);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1388</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1388: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1388: statement not executed.">            writer.write(<span class="string">"\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1389</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1389: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1389: statement not executed.">            hasPublic = <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1390</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1391</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1392</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1392: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1392: statement not executed.">        <span class="keyword">if</span> ((systemID != <span class="keyword">null</span>) &amp;&amp; (!systemID.equals(<span class="string">""</span>))) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1393</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1393: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1393: statement not executed.">            <span class="keyword">if</span> (!hasPublic) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1394</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1394: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1394: statement not executed.">                writer.write(<span class="string">" SYSTEM"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1395</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1396</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1397</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1397: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1397: statement not executed.">            writer.write(<span class="string">" \""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1398</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1398: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1398: statement not executed.">            writer.write(systemID);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1399</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1399: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1399: statement not executed.">            writer.write(<span class="string">"\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1400</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1401</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1402</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1402: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1402: statement not executed.">        writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1403</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1403: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1403: statement not executed.">        writePrintln();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1404</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1405</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1406</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1406: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1406: method not entered.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeEntity(Entity entity) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1407</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1407: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1407: statement not executed.">        <span class="keyword">if</span> (!resolveEntityRefs()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1408</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1408: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1408: statement not executed.">            writeEntityRef(entity.getName());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1409</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1410</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1410: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1410: statement not executed.">            writer.write(entity.getText());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1411</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1412</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1413</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1414</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1414: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1414: method not entered.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeEntityRef(String name) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1415</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1415: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1415: statement not executed.">        writer.write(<span class="string">"&amp;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1416</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1416: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1416: statement not executed.">        writer.write(name);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1417</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1417: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1417: statement not executed.">        writer.write(<span class="string">";"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1418</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1419</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1419: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1419: statement not executed.">        lastOutputNodeType = Node.ENTITY_REFERENCE_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1420</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1421</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1422</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1422: method entered 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1422: method entered 447 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeComment(String text) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1423</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1423: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1423: statement executed 447 times.">        <span class="keyword">if</span> (format.isNewlines()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1424</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1424: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1424: statement executed 3 times.">            println();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1425</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1425: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1425: statement executed 3 times.">            indent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1426</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1427</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1428</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1428: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1428: statement executed 447 times.">        writer.write(<span class="string">"&lt;!--"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1429</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1429: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1429: statement executed 447 times.">        writer.write(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1430</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1430: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1430: statement executed 447 times.">        writer.write(<span class="string">"--&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1431</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1432</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1432: statement executed 447 times.">&nbsp;447</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1432: statement executed 447 times.">        lastOutputNodeType = Node.COMMENT_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1433</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1434</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1435</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1436</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Writes the attributes of the given element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1437</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1438</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1439</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1440</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1441</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1442</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1443</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1444</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1444: method entered 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1444: method entered 20077 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeAttributes(Element element) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1445</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// I do not yet handle the case where the same prefix maps to</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1446</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// two different URIs. For attributes on the same element</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1447</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// this is illegal; but as yet we don't throw an exception</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1448</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// if someone tries to do this</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1449</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1449: statement executed 20077 times.">&nbsp;20077</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1449: statement executed 20077 times.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0, size = element.attributeCount(); i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1450</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1450: statement executed 4276 times.">&nbsp;4276</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1450: statement executed 4276 times.">            Attribute attribute = element.attribute(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1451</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1451: statement executed 4276 times.">&nbsp;4276</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1451: statement executed 4276 times.">            Namespace ns = attribute.getNamespace();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1452</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1453</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1453: statement executed 4276 times.">&nbsp;4276</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1453: statement executed 4276 times.">            <span class="keyword">if</span> ((ns != <span class="keyword">null</span>) &amp;&amp; (ns != Namespace.NO_NAMESPACE)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1454</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    &amp;&amp; (ns != Namespace.XML_NAMESPACE)) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1455</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1455: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1455: statement executed 14 times.">                String prefix = ns.getPrefix();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1456</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1456: statement executed 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1456: statement executed 14 times.">                String uri = namespaceStack.getURI(prefix);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1457</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1458</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1458: expression evaluated to true 0 times, false 14 times.">&nbsp;14</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1458: expression evaluated to true 0 times, false 14 times.">                <span class="keyword">if</span> (!ns.getURI().equals(uri)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1459</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1459: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1459: statement not executed.">                    writeNamespace(ns);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1460</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1460: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1460: statement not executed.">                    namespaceStack.push(ns);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1461</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1462</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1463</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1464</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// If the attribute is a namespace declaration, check if we have</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1465</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// already written that declaration elsewhere (if that's the case,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1466</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// it must be in the namespace stack</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1467</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1467: statement executed 4276 times.">&nbsp;4276</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1467: statement executed 4276 times.">            String attName = attribute.getName();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1468</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1469</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1469: statement executed 4276 times.">&nbsp;4276</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1469: statement executed 4276 times.">            <span class="keyword">if</span> (attName.startsWith(<span class="string">"xmlns:"</span>)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1470</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1470: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1470: statement executed 3 times.">                String prefix = attName.substring(6);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1471</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1472</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1472: statement executed 3 times.">&nbsp;3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1472: statement executed 3 times.">                <span class="keyword">if</span> (namespaceStack.getNamespaceForPrefix(prefix) == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1473</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1473: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1473: statement executed 2 times.">                    String uri = attribute.getValue();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1474</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1474: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1474: statement executed 2 times.">                    namespaceStack.push(prefix, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1475</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1475: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1475: statement executed 2 times.">                    writeNamespace(prefix, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1476</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1477</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1477: statement executed 4273 times.">&nbsp;4273</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1477: statement executed 4273 times.">            } <span class="keyword">else</span> <span class="keyword">if</span> (attName.equals(<span class="string">"xmlns"</span>)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1478</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1478: expression evaluated to true 0 times, false 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1478: expression evaluated to true 0 times, false 1 time.">                <span class="keyword">if</span> (namespaceStack.getDefaultNamespace() == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1479</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1479: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1479: statement not executed.">                    String uri = attribute.getValue();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1480</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1480: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1480: statement not executed.">                    namespaceStack.push(<span class="keyword">null</span>, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1481</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1481: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1481: statement not executed.">                    writeNamespace(<span class="keyword">null</span>, uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1482</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1483</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1484</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1484: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1484: statement executed 4272 times.">                <span class="keyword">char</span> quote = format.getAttributeQuoteCharacter();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1485</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1485: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1485: statement executed 4272 times.">                writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1486</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1486: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1486: statement executed 4272 times.">                writer.write(attribute.getQualifiedName());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1487</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1487: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1487: statement executed 4272 times.">                writer.write(<span class="string">"="</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1488</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1488: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1488: statement executed 4272 times.">                writer.write(quote);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1489</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1489: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1489: statement executed 4272 times.">                writeEscapeAttributeEntities(attribute.getValue());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1490</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1490: statement executed 4272 times.">&nbsp;4272</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1490: statement executed 4272 times.">                writer.write(quote);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1491</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1492</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1493</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1494</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1495</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1495: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1495: method not entered.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeAttribute(Attribute attribute) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1496</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1496: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1496: statement not executed.">        writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1497</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1497: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1497: statement not executed.">        writer.write(attribute.getQualifiedName());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1498</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1498: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1498: statement not executed.">        writer.write(<span class="string">"="</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1499</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1500</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1500: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1500: statement not executed.">        <span class="keyword">char</span> quote = format.getAttributeQuoteCharacter();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1501</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1501: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1501: statement not executed.">        writer.write(quote);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1502</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1503</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1503: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1503: statement not executed.">        writeEscapeAttributeEntities(attribute.getValue());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1504</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1505</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1505: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1505: statement not executed.">        writer.write(quote);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1506</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1506: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1506: statement not executed.">        lastOutputNodeType = Node.ATTRIBUTE_NODE;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1507</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1508</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1509</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1509: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1509: method entered 8 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeAttributes(Attributes attributes) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1510</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1510: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1510: statement executed 8 times.">        <span class="keyword">for</span> (<span class="keyword">int</span> i = 0, size = attributes.getLength(); i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1511</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1511: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1511: statement executed 5 times.">            writeAttribute(attributes, i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1512</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1513</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1514</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1515</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1515: method entered 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1515: method entered 5 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeAttribute(Attributes attributes, <span class="keyword">int</span> index)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1516</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> IOException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1517</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1517: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1517: statement executed 5 times.">        <span class="keyword">char</span> quote = format.getAttributeQuoteCharacter();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1518</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1518: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1518: statement executed 5 times.">        writer.write(<span class="string">" "</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1519</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1519: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1519: statement executed 5 times.">        writer.write(attributes.getQName(index));</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1520</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1520: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1520: statement executed 5 times.">        writer.write(<span class="string">"="</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1521</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1521: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1521: statement executed 5 times.">        writer.write(quote);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1522</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1522: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1522: statement executed 5 times.">        writeEscapeAttributeEntities(attributes.getValue(index));</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1523</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1523: statement executed 5 times.">&nbsp;5</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1523: statement executed 5 times.">        writer.write(quote);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1524</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1525</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1526</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1526: method entered 24916 times.">&nbsp;24916</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1526: method entered 24916 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> indent() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1527</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1527: statement executed 24916 times.">&nbsp;24916</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1527: statement executed 24916 times.">        String indent = format.getIndent();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1528</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1529</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1529: statement executed 24916 times.">&nbsp;24916</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1529: statement executed 24916 times.">        <span class="keyword">if</span> ((indent != <span class="keyword">null</span>) &amp;&amp; (indent.length() &gt; 0)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1530</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1530: statement executed 151 times.">&nbsp;151</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1530: statement executed 151 times.">            <span class="keyword">for</span> (<span class="keyword">int</span> i = 0; i &lt; indentLevel; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1531</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1531: statement executed 172 times.">&nbsp;172</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1531: statement executed 172 times.">                writer.write(indent);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1532</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1533</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1534</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1535</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1536</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1537</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1538</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * This will print a new line only if the newlines flag was set to true</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1539</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1540</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1541</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1542</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1543</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1544</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1544: method entered 25027 times.">&nbsp;25027</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1544: method entered 25027 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writePrintln() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1545</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1545: statement executed 25027 times.">&nbsp;25027</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1545: statement executed 25027 times.">        <span class="keyword">if</span> (format.isNewlines()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1546</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1546: statement executed 179 times.">&nbsp;179</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1546: statement executed 179 times.">            String seperator = format.getLineSeparator();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1547</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1547: statement executed 179 times.">&nbsp;179</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1547: statement executed 179 times.">            <span class="keyword">if</span> (lastChar != seperator.charAt(seperator.length() - 1)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1548</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1548: statement executed 176 times.">&nbsp;176</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1548: statement executed 176 times.">                writer.write(format.getLineSeparator());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1549</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1550</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1551</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1552</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1553</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1554</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Get an OutputStreamWriter, use preferred encoding.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1555</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1556</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> outStream</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1557</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1558</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> encoding</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1559</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1560</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1561</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1562</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1563</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> UnsupportedEncodingException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1564</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1565</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1566</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1566: method entered 25 times.">&nbsp;25</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1566: method entered 25 times.">    <span class="keyword">protected</span> Writer createWriter(OutputStream outStream, String encoding)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1567</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> UnsupportedEncodingException {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1568</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1568: statement executed 25 times.">&nbsp;25</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1568: statement executed 25 times.">        <span class="keyword">return</span> <span class="keyword">new</span> BufferedWriter(<span class="keyword">new</span> OutputStreamWriter(outStream, encoding));</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1569</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1570</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1571</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1572</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1573</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * This will write the declaration to the given Writer. Assumes XML version</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1574</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * 1.0 since we don't directly know.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1575</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * &lt;/p&gt;</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1576</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1577</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@throws</span> IOException</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1578</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *             DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1579</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1580</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1580: method entered 114 times.">&nbsp;114</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1580: method entered 114 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeDeclaration() <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1581</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1581: statement executed 114 times.">&nbsp;114</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1581: statement executed 114 times.">        String encoding = format.getEncoding();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1582</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1583</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// Only print of declaration is not suppressed</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1584</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1584: statement executed 114 times.">&nbsp;114</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1584: statement executed 114 times.">        <span class="keyword">if</span> (!format.isSuppressDeclaration()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1585</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="comment">// Assume 1.0 version</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1586</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1586: expression evaluated to true 0 times, false 110 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1586: expression evaluated to true 0 times, false 110 times.">            <span class="keyword">if</span> (encoding.equals(<span class="string">"UTF8"</span>)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1587</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1587: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1587: statement not executed.">                writer.write(<span class="string">"&lt;?xml version=\"1.0\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1588</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1589</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1589: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1589: statement not executed.">                <span class="keyword">if</span> (!format.isOmitEncoding()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1590</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1590: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1590: statement not executed.">                    writer.write(<span class="string">" encoding=\"UTF-8\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1591</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1592</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1593</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1593: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1593: statement not executed.">                writer.write(<span class="string">"?&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1594</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1595</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1595: statement executed 110 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1595: statement executed 110 times.">                writer.write(<span class="string">"&lt;?xml version=\"1.0\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1596</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1597</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1597: expression evaluated to true 110 times, false 0 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1597: expression evaluated to true 110 times, false 0 times.">                <span class="keyword">if</span> (!format.isOmitEncoding()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1598</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1598: statement executed 110 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1598: statement executed 110 times.">                    writer.write(<span class="string">" encoding=\""</span> + encoding + <span class="string">"\""</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1599</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1600</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1601</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1601: statement executed 110 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1601: statement executed 110 times.">                writer.write(<span class="string">"?&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1602</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1603</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1604</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1604: expression evaluated to true 110 times, false 0 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1604: expression evaluated to true 110 times, false 0 times.">            <span class="keyword">if</span> (format.isNewLineAfterDeclaration()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1605</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1605: statement executed 110 times.">&nbsp;110</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1605: statement executed 110 times.">                println();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1606</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1607</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1608</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1609</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1610</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1610: method entered 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1610: method entered 8 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeClose(String qualifiedName) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1611</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1611: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1611: statement executed 8 times.">        writer.write(<span class="string">"&lt;/"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1612</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1612: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1612: statement executed 8 times.">        writer.write(qualifiedName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1613</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1613: statement executed 8 times.">&nbsp;8</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1613: statement executed 8 times.">        writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1614</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1615</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1616</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1616: method entered 299 times.">&nbsp;299</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1616: method entered 299 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeEmptyElementClose(String qualifiedName)</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1617</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            <span class="keyword">throws</span> IOException {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1618</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// Simply close up</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1619</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1619: statement executed 299 times.">&nbsp;299</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1619: statement executed 299 times.">        <span class="keyword">if</span> (!format.isExpandEmptyElements()) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1620</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1620: statement executed 295 times.">&nbsp;295</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1620: statement executed 295 times.">            writer.write(<span class="string">"/&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1621</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1622</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1622: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1622: statement executed 4 times.">            writer.write(<span class="string">"&gt;&lt;/"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1623</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1623: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1623: statement executed 4 times.">            writer.write(qualifiedName);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1624</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1624: statement executed 4 times.">&nbsp;4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1624: statement executed 4 times.">            writer.write(<span class="string">"&gt;"</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1625</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1626</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1627</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1628</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1628: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1628: method not entered.">    <span class="keyword">protected</span> <span class="keyword">boolean</span> isExpandEmptyElements() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1629</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1629: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1629: statement not executed.">        <span class="keyword">return</span> format.isExpandEmptyElements();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1630</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1631</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1632</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1633</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * This will take the pre-defined entities in XML 1.0 and convert their</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1634</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * character representation to the appropriate entity reference, suitable</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1635</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * for XML attributes.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1636</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1637</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> text</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1638</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1639</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1640</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1641</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1642</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1642: method entered 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1642: method entered 37708 times.">    <span class="keyword">protected</span> String escapeElementEntities(String text) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1643</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1643: statement executed 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1643: statement executed 37708 times.">        <span class="keyword">char</span>[] block = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1644</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1644: statement executed 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1644: statement executed 37708 times.">        <span class="keyword">int</span> i;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1645</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1645: statement executed 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1645: statement executed 37708 times.">        <span class="keyword">int</span> last = 0;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1646</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1646: statement executed 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1646: statement executed 37708 times.">        <span class="keyword">int</span> size = text.length();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1647</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1648</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1648: statement executed 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1648: statement executed 37708 times.">        <span class="keyword">for</span> (i = 0; i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1649</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1649: statement executed 467325 times.">&nbsp;467325</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1649: statement executed 467325 times.">            String entity = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1650</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1650: statement executed 467325 times.">&nbsp;467325</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1650: statement executed 467325 times.">            <span class="keyword">char</span> c = text.charAt(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1651</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1652</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1652: statement executed 467325 times.">&nbsp;467325</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1652: statement executed 467325 times.">            <span class="keyword">switch</span> (c) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1653</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1653: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1653: statement executed 93 times.">                <span class="keyword">case</span> '&lt;':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1654</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1654: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1654: statement executed 93 times.">                    entity = <span class="string">"&amp;lt;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1655</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1656</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1656: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1656: statement executed 93 times.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1657</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1658</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1658: statement executed 84 times.">&nbsp;84</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1658: statement executed 84 times.">                <span class="keyword">case</span> '&gt;':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1659</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1659: statement executed 84 times.">&nbsp;84</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1659: statement executed 84 times.">                    entity = <span class="string">"&amp;gt;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1660</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1661</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1661: statement executed 84 times.">&nbsp;84</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1661: statement executed 84 times.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1662</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1663</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1663: statement executed 63 times.">&nbsp;63</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1663: statement executed 63 times.">                <span class="keyword">case</span> '&amp;':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1664</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1664: statement executed 63 times.">&nbsp;63</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1664: statement executed 63 times.">                    entity = <span class="string">"&amp;amp;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1665</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1666</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1666: statement executed 63 times.">&nbsp;63</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1666: statement executed 63 times.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1667</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1668</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1668: statement executed 3455 times.">&nbsp;3455</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1668: statement executed 3455 times.">                <span class="keyword">case</span> '\t':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1669</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1669: statement executed 27550 times.">&nbsp;27550</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1669: statement executed 27550 times.">                <span class="keyword">case</span> '\n':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1670</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1670: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1670: statement not executed.">                <span class="keyword">case</span> '\r':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1671</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1672</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// don't encode standard whitespace characters</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1673</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1673: statement executed 31005 times.">&nbsp;31005</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1673: statement executed 31005 times.">                    <span class="keyword">if</span> (preserve) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1674</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1674: statement executed 2 times.">&nbsp;2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1674: statement executed 2 times.">                        entity = String.valueOf(c);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1675</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1676</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1677</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1677: statement executed 31005 times.">&nbsp;31005</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1677: statement executed 31005 times.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1678</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1679</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1679: statement executed 436080 times.">&nbsp;436080</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1679: statement executed 436080 times.">                <span class="keyword">default</span>:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1680</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1681</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1681: statement executed 436080 times.">&nbsp;436080</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1681: statement executed 436080 times.">                    <span class="keyword">if</span> ((c &lt; 32) || shouldEncodeChar(c)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1682</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1682: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1682: statement executed 1 time.">                        entity = <span class="string">"&amp;#"</span> + (<span class="keyword">int</span>) c + <span class="string">";"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1683</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1684</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1685</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1685: statement executed 436080 times.">&nbsp;436080</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1685: statement executed 436080 times.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1686</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1687</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1688</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1688: statement executed 467325 times.">&nbsp;467325</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1688: statement executed 467325 times.">            <span class="keyword">if</span> (entity != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1689</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1689: statement executed 243 times.">&nbsp;243</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1689: statement executed 243 times.">                <span class="keyword">if</span> (block == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1690</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1690: statement executed 145 times.">&nbsp;145</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1690: statement executed 145 times.">                    block = text.toCharArray();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1691</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1692</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1693</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1693: statement executed 243 times.">&nbsp;243</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1693: statement executed 243 times.">                buffer.append(block, last, i - last);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1694</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1694: statement executed 243 times.">&nbsp;243</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1694: statement executed 243 times.">                buffer.append(entity);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1695</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1695: statement executed 243 times.">&nbsp;243</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1695: statement executed 243 times.">                last = i + 1;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1696</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1697</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1698</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1699</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1699: statement executed 37708 times.">&nbsp;37708</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1699: statement executed 37708 times.">        <span class="keyword">if</span> (last == 0) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1700</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1700: statement executed 37563 times.">&nbsp;37563</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1700: statement executed 37563 times.">            <span class="keyword">return</span> text;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1701</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1702</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1703</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1703: statement executed 145 times.">&nbsp;145</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1703: statement executed 145 times.">        <span class="keyword">if</span> (last &lt; size) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1704</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1704: expression evaluated to true 0 times, false 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1704: expression evaluated to true 0 times, false 93 times.">            <span class="keyword">if</span> (block == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1705</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1705: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1705: statement not executed.">                block = text.toCharArray();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1706</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1707</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1708</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1708: statement executed 93 times.">&nbsp;93</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1708: statement executed 93 times.">            buffer.append(block, last, i - last);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1709</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1710</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1711</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1711: statement executed 145 times.">&nbsp;145</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1711: statement executed 145 times.">        String answer = buffer.toString();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1712</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1712: statement executed 145 times.">&nbsp;145</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1712: statement executed 145 times.">        buffer.setLength(0);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1713</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1714</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1714: statement executed 145 times.">&nbsp;145</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1714: statement executed 145 times.">        <span class="keyword">return</span> answer;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1715</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1716</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1717</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1717: method entered 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1717: method entered 4277 times.">    <span class="keyword">protected</span> <span class="keyword">void</span> writeEscapeAttributeEntities(String txt) <span class="keyword">throws</span> IOException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1718</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1718: expression evaluated to true 4277 times, false 0 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1718: expression evaluated to true 4277 times, false 0 times.">        <span class="keyword">if</span> (txt != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1719</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1719: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1719: statement executed 4277 times.">            String escapedText = escapeAttributeEntities(txt);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1720</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1720: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1720: statement executed 4277 times.">            writer.write(escapedText);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1721</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1722</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1723</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1724</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1725</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * This will take the pre-defined entities in XML 1.0 and convert their</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1726</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * character representation to the appropriate entity reference, suitable</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1727</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * for XML attributes.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1728</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1729</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> text</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1730</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1731</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1732</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1733</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1734</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1734: method entered 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1734: method entered 4277 times.">    <span class="keyword">protected</span> String escapeAttributeEntities(String text) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1735</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1735: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1735: statement executed 4277 times.">        <span class="keyword">char</span> quote = format.getAttributeQuoteCharacter();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1736</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1737</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1737: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1737: statement executed 4277 times.">        <span class="keyword">char</span>[] block = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1738</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1738: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1738: statement executed 4277 times.">        <span class="keyword">int</span> i;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1739</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1739: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1739: statement executed 4277 times.">        <span class="keyword">int</span> last = 0;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1740</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1740: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1740: statement executed 4277 times.">        <span class="keyword">int</span> size = text.length();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1741</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1742</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1742: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1742: statement executed 4277 times.">        <span class="keyword">for</span> (i = 0; i &lt; size; i++) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1743</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1743: statement executed 48016 times.">&nbsp;48016</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1743: statement executed 48016 times.">            String entity = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1744</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1744: statement executed 48016 times.">&nbsp;48016</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1744: statement executed 48016 times.">            <span class="keyword">char</span> c = text.charAt(i);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1745</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1746</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1746: statement executed 48016 times.">&nbsp;48016</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1746: statement executed 48016 times.">            <span class="keyword">switch</span> (c) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1747</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1747: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1747: statement not executed.">                <span class="keyword">case</span> '&lt;':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1748</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1748: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1748: statement not executed.">                    entity = <span class="string">"&amp;lt;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1749</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1750</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1750: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1750: statement not executed.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1751</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1752</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1752: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1752: statement not executed.">                <span class="keyword">case</span> '&gt;':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1753</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1753: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1753: statement not executed.">                    entity = <span class="string">"&amp;gt;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1754</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1755</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1755: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1755: statement not executed.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1756</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1757</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1757: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1757: statement executed 1 time.">                <span class="keyword">case</span> '\'':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1758</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1759</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1759: expression evaluated to true 0 times, false 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1759: expression evaluated to true 0 times, false 1 time.">                    <span class="keyword">if</span> (quote == '\'') {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1760</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1760: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1760: statement not executed.">                        entity = <span class="string">"&amp;apos;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1761</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1762</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1763</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1763: statement executed 1 time.">&nbsp;1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1763: statement executed 1 time.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1764</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1765</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1765: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1765: statement not executed.">                <span class="keyword">case</span> '\"':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1766</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1767</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1767: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1767: statement not executed.">                    <span class="keyword">if</span> (quote == '\"') {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1768</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1768: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1768: statement not executed.">                        entity = <span class="string">"&amp;quot;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1769</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1770</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1771</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1771: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1771: statement not executed.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1772</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1773</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1773: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1773: statement not executed.">                <span class="keyword">case</span> '&amp;':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1774</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1774: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1774: statement not executed.">                    entity = <span class="string">"&amp;amp;"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1775</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1776</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1776: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1776: statement not executed.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1777</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1778</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1778: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1778: statement not executed.">                <span class="keyword">case</span> '\t':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1779</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1779: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1779: statement not executed.">                <span class="keyword">case</span> '\n':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1780</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1780: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1780: statement not executed.">                <span class="keyword">case</span> '\r':</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1781</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1782</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    <span class="comment">// don't encode standard whitespace characters</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1783</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1783: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1783: statement not executed.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1784</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1785</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1785: statement executed 48015 times.">&nbsp;48015</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1785: statement executed 48015 times.">                <span class="keyword">default</span>:</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1786</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1787</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1787: expression evaluated to true 0 times, false 48015 times.">&nbsp;48015</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1787: expression evaluated to true 0 times, false 48015 times.">                    <span class="keyword">if</span> ((c &lt; 32) || shouldEncodeChar(c)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1788</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1788: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1788: statement not executed.">                        entity = <span class="string">"&amp;#"</span> + (<span class="keyword">int</span>) c + <span class="string">";"</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1789</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1790</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1791</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1791: statement executed 48015 times.">&nbsp;48015</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1791: statement executed 48015 times.">                    <span class="keyword">break</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1792</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1793</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1794</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1794: expression evaluated to true 0 times, false 48016 times.">&nbsp;48016</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1794: expression evaluated to true 0 times, false 48016 times.">            <span class="keyword">if</span> (entity != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1795</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1795: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1795: statement not executed.">                <span class="keyword">if</span> (block == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1796</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1796: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1796: statement not executed.">                    block = text.toCharArray();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1797</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1798</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1799</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1799: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1799: statement not executed.">                buffer.append(block, last, i - last);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1800</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1800: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1800: statement not executed.">                buffer.append(entity);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1801</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1801: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1801: statement not executed.">                last = i + 1;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1802</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1803</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1804</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1805</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1805: expression evaluated to true 4277 times, false 0 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1805: expression evaluated to true 4277 times, false 0 times.">        <span class="keyword">if</span> (last == 0) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1806</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1806: statement executed 4277 times.">&nbsp;4277</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1806: statement executed 4277 times.">            <span class="keyword">return</span> text;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1807</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1808</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1809</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1809: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1809: statement not executed.">        <span class="keyword">if</span> (last &lt; size) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1810</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1810: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1810: statement not executed.">            <span class="keyword">if</span> (block == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1811</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1811: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1811: statement not executed.">                block = text.toCharArray();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1812</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1813</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1814</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1814: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1814: statement not executed.">            buffer.append(block, last, i - last);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1815</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1816</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1817</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1817: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1817: statement not executed.">        String answer = buffer.toString();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1818</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1818: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1818: statement not executed.">        buffer.setLength(0);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1819</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1820</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1820: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1820: statement not executed.">        <span class="keyword">return</span> answer;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1821</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1822</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1823</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1824</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Should the given character be escaped. This depends on the encoding of</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1825</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * the document.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1826</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1827</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@param</span> c</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1828</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     *            DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1829</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1830</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> boolean</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1831</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1832</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1832: method entered 484095 times.">&nbsp;484095</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1832: method entered 484095 times.">    <span class="keyword">protected</span> <span class="keyword">boolean</span> shouldEncodeChar(<span class="keyword">char</span> c) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1833</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1833: statement executed 484095 times.">&nbsp;484095</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1833: statement executed 484095 times.">        <span class="keyword">int</span> max = getMaximumAllowedCharacter();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1834</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1835</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1835: statement executed 484095 times.">&nbsp;484095</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1835: statement executed 484095 times.">        <span class="keyword">return</span> (max &gt; 0) &amp;&amp; (c &gt; max);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1836</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1837</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1838</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1839</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Returns the maximum allowed character code that should be allowed</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1840</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * unescaped which defaults to 127 in US-ASCII (7 bit) or 255 in ISO- (8</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1841</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * bit).</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1842</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1843</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1844</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1845</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1845: method entered 2147 times.">&nbsp;2147</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1845: method entered 2147 times.">    <span class="keyword">protected</span> <span class="keyword">int</span> defaultMaximumAllowedCharacter() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1846</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1846: statement executed 2147 times.">&nbsp;2147</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1846: statement executed 2147 times.">        String encoding = format.getEncoding();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1847</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1848</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1848: expression evaluated to true 2147 times, false 0 times.">&nbsp;2147</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1848: expression evaluated to true 2147 times, false 0 times.">        <span class="keyword">if</span> (encoding != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1849</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1849: expression evaluated to true 0 times, false 2147 times.">&nbsp;2147</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1849: expression evaluated to true 0 times, false 2147 times.">            <span class="keyword">if</span> (encoding.equals(<span class="string">"US-ASCII"</span>)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1850</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1850: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1850: statement not executed.">                <span class="keyword">return</span> 127;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1851</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1852</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1853</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1854</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        <span class="comment">// no encoding for things like ISO-*, UTF-8 or UTF-16</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1855</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1855: statement executed 2147 times.">&nbsp;2147</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1855: statement executed 2147 times.">        <span class="keyword">return</span> -1;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1856</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1857</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1858</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1858: method entered 20275 times.">&nbsp;20275</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1858: method entered 20275 times.">    <span class="keyword">protected</span> <span class="keyword">boolean</span> isNamespaceDeclaration(Namespace ns) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1859</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1859: expression evaluated to true 20275 times, false 0 times.">&nbsp;20275</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1859: expression evaluated to true 20275 times, false 0 times.">        <span class="keyword">if</span> ((ns != <span class="keyword">null</span>) &amp;&amp; (ns != Namespace.XML_NAMESPACE)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1860</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1860: statement executed 20275 times.">&nbsp;20275</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1860: statement executed 20275 times.">            String uri = ns.getURI();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1861</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1862</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1862: expression evaluated to true 20275 times, false 0 times.">&nbsp;20275</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1862: expression evaluated to true 20275 times, false 0 times.">            <span class="keyword">if</span> (uri != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1863</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1863: statement executed 20275 times.">&nbsp;20275</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1863: statement executed 20275 times.">                <span class="keyword">if</span> (!namespaceStack.contains(ns)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1864</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1864: statement executed 618 times.">&nbsp;618</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1864: statement executed 618 times.">                    <span class="keyword">return</span> <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1865</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">                }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1866</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">            }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1867</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">        }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1868</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1869</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1869: statement executed 19657 times.">&nbsp;19657</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1869: statement executed 19657 times.">        <span class="keyword">return</span> <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1870</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1871</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1872</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1872: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1872: method not entered.">    <span class="keyword">protected</span> <span class="keyword">void</span> handleException(IOException e) <span class="keyword">throws</span> SAXException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1873</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1873: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1873: statement not executed.">        <span class="keyword">throw</span> <span class="keyword">new</span> SAXException(e);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1874</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1875</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1876</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">// Laramie Crocker 4/8/2002 10:38AM</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1877</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1878</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1879</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * Lets subclasses get at the current format object, so they can call</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1880</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * setTrimText, setNewLines, etc. Put in to support the HTMLWriter, in the</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1881</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * way that it pushes the current newline/trim state onto a stack and</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1882</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * overrides the state within preformatted tags.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1883</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1884</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1885</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">     */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1886</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1886: method entered 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1886: method entered 7 times.">    <span class="keyword">protected</span> OutputFormat getOutputFormat() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1887</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 1887: statement executed 7 times.">&nbsp;7</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 1887: statement executed 7 times.">        <span class="keyword">return</span> format;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1888</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1889</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1890</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1890: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1890: method not entered.">    <span class="keyword">public</span> <span class="keyword">boolean</span> resolveEntityRefs() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1891</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1891: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1891: statement not executed.">        <span class="keyword">return</span> resolveEntityRefs;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1892</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1893</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1894</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1894: method not entered.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1894: method not entered.">    <span class="keyword">public</span> <span class="keyword">void</span> setResolveEntityRefs(<span class="keyword">boolean</span> resolve) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
&nbsp;1895</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 1895: statement not executed.">&nbsp;0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 1895: statement not executed.">        <span class="keyword">this</span>.resolveEntityRefs = resolve;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1896</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">    }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1897</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine">}</SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1898</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1899</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">/*</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1900</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Redistribution and use of this software and associated documentation</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1901</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ("Software"), with or without modification, are permitted provided that the</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1902</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * following conditions are met:</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1903</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1904</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 1. Redistributions of source code must retain copyright statements and</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1905</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * notices. Redistributions must also contain a copy of this document.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1906</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1907</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1908</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * this list of conditions and the following disclaimer in the documentation</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1909</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * and/or other materials provided with the distribution.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1910</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1911</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 3. The name "DOM4J" must not be used to endorse or promote products derived</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1912</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * from this Software without prior written permission of MetaStuff, Ltd. For</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1913</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * written permission, please contact dom4j-info@metastuff.com.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1914</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1915</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 4. Products derived from this Software may not be called "DOM4J" nor may</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1916</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * "DOM4J" appear in their names without prior written permission of MetaStuff,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1917</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1918</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1919</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1920</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1921</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1922</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1923</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1924</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1925</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1926</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1927</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1928</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1929</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1930</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1931</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1932</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1933</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
&nbsp;1934</TD>
<TD align="right" class="coverageCount">
&nbsp;&nbsp;
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR></TBODY></TABLE>
<TABLE width="100%"><TR><TD class="hbreak" colspan="6">&nbsp;</TD></TR>
<TR><TD class="footer" colspan="6">
<table>
<tr>
 <td><a target="_new" href="http://www.cenqua.com/clover"><img alt="Clover" src="../../../img/logo.gif" border="0"></a></td><td nowrap><i>Report generated by </i><a target="_new" href="http://www.cenqua.com/clover">Clover Code Coverage v1.3.5</a><i><BR>ma mei 16 2005 14:23:02 GMT+01:00</i>.</td>
<td>&nbsp;</td><td style="BORDER-LEFT: #9c9c9c 1px solid;">&nbsp;</td><td>Open Source License registered to the dom4j Project. This license of Clover is provided to support the development of dom4j only. </td>
</tr>
</table>
</td>
</tr></TABLE>
